Save drafts permanently in local storage
This commit is contained in:
parent
98bbb4eeef
commit
b6f1178ea3
7 changed files with 54 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import merge from 'lodash.merge'
|
||||
import localforage from 'localforage'
|
||||
import { each, get, set, cloneDeep } from 'lodash'
|
||||
import { storage } from './storage.js'
|
||||
|
||||
let loaded = false
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ const saveImmedeatelyActions = [
|
|||
]
|
||||
|
||||
const defaultStorage = (() => {
|
||||
return localforage
|
||||
return storage
|
||||
})()
|
||||
|
||||
export default function createPersistedState ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue