remove cookie store and session storage

This commit is contained in:
Mikhail Mikheev 2019-04-08 11:19:39 +04:00
parent 32970871d2
commit 6e9799bd17
1 changed files with 5 additions and 2 deletions

View File

@ -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'