Skip to content

v0.8.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@yelouafi yelouafi released this 15 Feb 03:37

Features

The release adds 2 helper functions takeEvery and takeLatest to handle the common case concurrency scenarios

For the reasons behind this addition see #70 (comment)

You can find the docs of the functions here

http://yelouafi.github.io/redux-saga/docs/basics/UsingSagaHelpers.html

http://yelouafi.github.io/redux-saga/docs/advanced/Concurrency.html

http://yelouafi.github.io/redux-saga/docs/api/index.html#saga-helpers

There is a breaking change in this release

The path import for Effects has changed from redux-saga to redux-saga/effects

Before

import {  take, put, call, ... } from 'redux-saga'

After

import {  take, put, call, ... } from 'redux-saga/effects'

Other changes

added a helper function isCancelError to simplify test of Cancellation Exception

Instead of

import { isCancelError } from 'redux-saga'

function* saga() {
  try {
     ...
  } catch(error) {
     if(isCance(error) 
        // error is an instance of SagaCancellationException
  }
}