redux-localstorage-debounce

WebJar for redux-localstorage-debounce

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

redux-localstorage-debounce
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

redux-localstorage-debounce
WebJar for redux-localstorage-debounce
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download redux-localstorage-debounce

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : lodash.debounce jar [3.1.1,4)

Project Modules

There are no modules declared in this project.

redux-localstorage-debounce

Storage enhancer to debounce persist requests.

To improve performance, debounce allows you to delay consecutive store changes and persist them periodically instead.

license npm version npm downloads

Installation

npm install --save redux-localstorage-debounce

Usage

const storage = compose(
  debounce(100),
)(adapter(localStorage));

For more information on using storage enhancers check out redux-localstorage

API

debounce(wait[, maxWait])

Persist calls are delayed until wait milliseconds since the last time the function was invoked. In order to prevent an endless stream of consecutive state changes from ever persisting, you can pass in a second argument that specifies the maxWait milliseconds that a persist call is allowed to be delayed.

Note: Internally debounce utilizes lodash.debounce, rather then specifying the maxWait as second argument you can pass in an object with options as specified by lodash.

License

MIT

Versions

Version
0.1.0