redux-localstorage-filter

WebJar for redux-localstorage-filter

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

redux-localstorage-filter
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

redux-localstorage-filter
WebJar for redux-localstorage-filter
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/elgerlambert/redux-localstorage-filter

Download redux-localstorage-filter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/redux-localstorage-filter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>redux-localstorage-filter</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/redux-localstorage-filter/
implementation 'org.webjars.npm:redux-localstorage-filter:0.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/redux-localstorage-filter/
implementation ("org.webjars.npm:redux-localstorage-filter:0.1.1")
'org.webjars.npm:redux-localstorage-filter:jar:0.1.1'
<dependency org="org.webjars.npm" name="redux-localstorage-filter" rev="0.1.1">
  <artifact name="redux-localstorage-filter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='redux-localstorage-filter', version='0.1.1')
)
libraryDependencies += "org.webjars.npm" % "redux-localstorage-filter" % "0.1.1"
[org.webjars.npm/redux-localstorage-filter "0.1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

redux-localstorage-filter

Storage enhancer to persist a subset of your state.

license npm version npm downloads

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

Versions

Version
0.1.1