redux-localstorage-debounce

WebJar for redux-localstorage-debounce

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

redux-localstorage-debounce
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

redux-localstorage-debounce
WebJar for redux-localstorage-debounce
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать redux-localstorage-debounce

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : lodash.debounce jar [3.1.1,4)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.1.0