redux-saga-ticker

1.0.1 • Public • Published

Usage

import Ticker from 'redux-saga-ticker';

function* hourlyCron () {
  const channel = Ticker(60 * 60 * 1000);
  while (true) {
    yield take(channel);
    yield put({type: 'RUN_HOURLY_CRON'});
  }
}

Call channel.close() to stop the ticker.

Readme

Keywords

Package Sidebar

Install

npm i redux-saga-ticker

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • epixode