Redux Debounce Listener
A proxy creator for Redux store to debounce listeners.
Motivation
Redux Debounce Listener allows you to delay invoking listeners. If you use this with React, rendering cost may be reduced.
Installation
npm install --save redux-debounce-listener
Example App
$ cd example$ npm install$ npm start
Examples of Use
Simple
;; // create a store that has redux-debounce-listener enabledconst finalCreateStore = createStore; const store = ;
Composition
; // create a store that has redux-thunk middleware and dux-debounce-listener enabledconst finalCreateStore = createStore const store = ;
API
debounceListener([wait=0], [options])
wait
and options
parameters are passed to the lodash debounce function.
See debounce for details.
License
MIT