Package Exports
- redux-localstorage-filter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (redux-localstorage-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
redux-localstorage-filter
Storage enhancer to persist a subset of your state.
Installation
npm install --save redux-localstorage-filter
Usage
const storage = compose(
filter('nested.key'),
)(adapter(localStorage));
For more information on using storage enhancers check out redux-localstorage
API
filter(paths)
type paths = Array<String> | String
A path is a string
that points to the property key of your redux store that you would like to persist. In order to specify a nested key separate the keys that make up the full path with fullstops (.
). Specify multiple paths by passing in an Array
:
filter(['key', 'another.key']),
License
MIT