reim-persist
reim-persist saves a Reim store's state to localstorage
Exports
persist
persist
persist(options: Object) => func
Usage
Will get state from localstorage on initialization, and on state change it will write to localstorage.
You can use custom storage by providing storage
option:
Note the customStorage
must have setItem
and removeItem
options
Last updated