1.0.3 • Published 6 years ago

debounce-redux-dispatch v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Debounce Redux Dispatch

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));
  }
});

...

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

Unless stated otherwise all works are:

and licensed under: