redux-localstorage-reject

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i redux-localstorage-reject

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sugarshin