redux-idle-dispatcher
Idle your redux app
Last updated 4 months ago by bwendt .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install redux-idle-dispatcher 
SYNC missed versions from official npm registry.

redux-idle-dispatcher

:hourglass: Idle your redux app with ease!

Why?

Dispatch a custom action after a duration of store idleness in the active browser tab.

The action is debounced so that it's only called once after the duration of idleness. Additionally, the action is only dispatched if the browser tab is active, dispatching immediately on reactivation.

Installation

npm install --save redux-idle-dispatcher

Usage

const unsubscriber = reduxIdleDispatcher(
  store,    // your redux store
  timeout,  // default is 30000 (ms)
  action    // default is {type: '@@redux-idle-dispatcher/IDLE'}
)

Current Tags

  • 2.0.1                                ...           latest (4 months ago)

9 Versions

  • 2.0.1                                ...           4 months ago
  • 2.0.0                                ...           10 months ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 5
Last Day 0
Last Week 3
Last Month 3
Dependencies (0)
None
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |