Skip to content

Releases: salsita/redux-side-effects

v1.0.1

31 Mar 10:45
Compare
Choose a tag to compare

v1.0.0

24 Mar 12:40
Compare
Choose a tag to compare

This is a production 1.0 release:

Merged #12:

  • Reduces API surface area
  • Presents sideEffect abstraction

Breaking change

It's no longer possible to yield function as side effect within reducer, now it's mandatory to use declarative effects:

Instead of:

function* reducer(appState, action) {
  yield dispatch => console.log('side effect capable of dispatching new action');
  return appState;
}

you'd have to:

import { sideEffect } from 'redux-side-effects';

const loggingEffect = (dispatch, message) => console.log(message);

function* reducer(appState, action) {
  yield sideEffect(loggingEffect, 'side effect capable of dispatching new action');
  return appState;
}