redux-saga/effects#spawn TypeScript Examples

The following examples show how to use redux-saga/effects#spawn. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: rootSaga.ts    From celo-web-wallet with MIT License 7 votes vote down vote up
export function* rootSaga() {
  yield spawn(init)
  for (const m of Object.values(monitoredSagas)) {
    yield spawn(m.saga)
  }
  for (const s of sagas) {
    yield spawn(s)
  }
}
Example #2
Source File: RootSaga.ts    From rewind with MIT License 5 votes vote down vote up
export function createRewindRootSaga({ theater }: { theater: RewindTheater }) {
  return function* () {
    yield spawn(watchForBackendMissingSetup);
    yield spawn(watchForBackendReady, theater);
    yield spawn(busyPollBackendState);
  };
}