2.0.2 • Published 3 years ago

redux-idle-dispatcher v2.0.2

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

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'}
)
2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago