1.0.0 • Published 8 years ago

redux-localstorage-reject v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

redux-localstorage-reject

Build Status Dependency Status Devdependency Status GitHub version License

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

© sugarshin