redux-persist-immutable-state
v3.2.5
Published
stateIterator, stateGetter, stateSetter and stateReconciler that supports a top level immutable.js state for redux-persist
Downloads
10
Maintainers
Readme
redux-persist-immutable-state
Implements stateIterator, stateGetter, stateSetter and stateReconciler for an ImmutableJS root state.
Dependencies
- redux-persist
- redux-persist-immutable -> If you're substate are ImmutableJS objects
Usage
import { persistStore } from 'redux-persist';
import { stateIterator, stateGetter, stateSetter,
stateReconciler, lastStateInit } from 'redux-persist-immutable-state';
persistStore(state, {
transforms: [reduxPersistImmutable],
stateIterator: stateIterator,
stateGetter: stateGetter, stateSetter: stateSetter,
lastStateInit: lastStateInit
});