Skip to content

typed-redux-saga

Choose a tag to compare

@neurosnap neurosnap released this 10 Feb 19:48
· 17 commits to main since this release
6cd8dd9

This is a breaking change for anyone using saga-query. We are now using typed-redux-saga which means anytime you import effects (e.g. call, select, put, etc.) from saga-query you must use yield delegates.

Before

import { call } from 'saga-query';

function* gen() {
  return 0;
}

function*() {
  // ts considers result is `any`
  const result = yield call(gen);
}

After

import { call } from 'saga-query';

function* gen() {
  return 0;
}

function*() {
  // ts considers result is `number`
  const result = yield* call(gen);
}