A redux middleware which saves a snapshot of the state to localStorage.
;;;const createStoreWithMiddlewares= createStore;const store = ;// In React Componentstore;console; // state as JSON string
;const key = "some_key_string";const options = ... ;const middleware = ;
key : String
Required. The key in localStorage to save state.
options.filter: Function(state: object) => object
state => state.
Saves the value returned by
Delays setting the state to localStorage until
debounce milliseconds have elapsed since the last time the action was dispatched.
See also _.debounce.