forked from AkkomaGang/akkoma-fe
Only save every minute.
This commit is contained in:
parent
40fe40d96b
commit
aa3512205d
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default function createPersistedState ({
|
||||||
}
|
}
|
||||||
return value && value !== 'undefined' ? JSON.parse(value) : undefined
|
return value && value !== 'undefined' ? JSON.parse(value) : undefined
|
||||||
},
|
},
|
||||||
setState = throttle(defaultSetState, 5000),
|
setState = throttle(defaultSetState, 60000),
|
||||||
reducer = defaultReducer,
|
reducer = defaultReducer,
|
||||||
storage = defaultStorage,
|
storage = defaultStorage,
|
||||||
subscriber = store => handler => store.subscribe(handler)
|
subscriber = store => handler => store.subscribe(handler)
|
||||||
|
|
Loading…
Reference in a new issue