@textile/redux-saga-wait-for
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

redux-saga-wait-for

Getting started

$ npm install @textile/redux-saga-wait-for --save

Example

import { waitFor } from 'redux-saga-wait-for'

function * waitForOnline() {
  const { onlineTimout } = yield race({
    online: waitFor(select(TextileNodeSelectors.online)),
    onlineTimout: call(delay, 10000)
  })
  if (onlineTimout) {
    throw new Error('node online timed out, internet connection needed')
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @textile/redux-saga-wait-for

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.37 kB

Total Files

5

Last publish

Collaborators

  • joewagner
  • awmuncy
  • sanderpick
  • textileio
  • andrewxhill
  • carsonfarmer
  • asutula