Make debounced action creator
You want to use this package to create a debounced version of a redux action creator. Example use cases:
- send ajax call after a user stops changing search query
- I don't know. PRs are welcome.
Installation
npm i redux-debounce-thunk # or with yarn yarn add redux-debounce-thunk
Notice: this requires redux and redux-thunk (of course).
Usage
const actionCreator = /* some action creator */; const debouncedActionCreator = ; // debounce 300ms // simply dispatch the actionstore;
Why another redux-debounce-xxx
Because I don't want meta
and another middleware.