react-navigation-redux-debouncer

0.0.2 • Public • Published

React-Navigation Redux debouncer

This middleware resolves the common problem with React-Navigation - navigation action is called twice if you click fast enough the button that calls the navigation action. Just add this middleware and it will block all the Navigation actions during the predefined interval after some Navigation action already called.

Installation

npm install -s react-navigation-redux-debouncer

Usage

import navigationDebouncer from 'react-navigation-redux-debouncer';

const store = applyMiddleware( 
  navigationDebouncer( 600 ) // debounce time in ms, 600 by default if empty
)(createStore)(reducer); 

/react-navigation-redux-debouncer/

    Package Sidebar

    Install

    npm i react-navigation-redux-debouncer

    Weekly Downloads

    125

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • parakhod