redux-localstorage-reject
Web Storage persist of rejected state.
npm i redux-localstorage-reject
Usage
import { compose } from 'redux';
import adapter from 'redux-localstorage/lib/adapters/localStorage';
import reject from 'redux-localstorage-reject';
const rejectKeys = ['a.b', 'a.c', 'b.d.e', 'd'];
const storage = compose(
reject(rejectKeys)
)(adapter(global.localStorage));
For more information on using storage enhancers check out redux-localstorage
API
reject(paths)
@param {Array<String> | String} paths
@returns {Function}
Contributing
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
License
© sugarshin