Skip to content
Debounce helper for debouncing redux dispatch actions/thunks
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.babelrc
.editorconfig
.eslintrc
.gitignore
.npmignore
.vcmrc
LICENSE
README.md
package.json
projectz.cson
webpack.config.js
yarn.lock

README.md

Debounce Redux Dispatch

Debounce Redux Dispatch

Nodei.co badge
Travis CI Build Status NPM version NPM downloads Dependency Status

Instalation

Note: Designed for use with React Redux

yarn add debounce-redux-dispatch

or

npm install debounce-redux-dispatch

Usage

import { connect } from 'react-redux';
import { search } from './thunks';

import asyncDebounced from 'debounce-redux-dispatch';

...

const mapDispatchToProps = dispatch => ({
  triggerSearch(query) {
    dispatch(asyncDebounced(search, 1000, query));
  }
});

...

History

Discover the release history by heading on over to the releases page.

License

Unless stated otherwise all works are:

  • Copyright © 2018+ Reme Le Hane

and licensed under:

You can’t perform that action at this time.