remove cookie store and session storage
This commit is contained in:
parent
32970871d2
commit
6e9799bd17
|
@ -1,9 +1,12 @@
|
|||
// @flow
|
||||
import {
|
||||
ImmortalStorage, CookieStore, IndexedDbStore, LocalStorageStore, SessionStorageStore,
|
||||
ImmortalStorage, IndexedDbStore, LocalStorageStore,
|
||||
} from 'immortal-db'
|
||||
|
||||
const stores = [CookieStore, IndexedDbStore, LocalStorageStore, SessionStorageStore]
|
||||
// Don't use sessionStorage and cookieStorage
|
||||
// https://github.com/gruns/ImmortalDB/issues/22
|
||||
// https://github.com/gruns/ImmortalDB/issues/6
|
||||
const stores = [IndexedDbStore, LocalStorageStore]
|
||||
export const storage = new ImmortalStorage(stores)
|
||||
|
||||
const PREFIX = 'v1'
|
||||
|
|
Loading…
Reference in New Issue