Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

v4.0.0

Compare
Choose a tag to compare
@bmealhouse bmealhouse released this 13 Feb 23:46

Major Changes

API changes

Create store

In v4, runSagaTask is no longer necessary.

// v4
// -------
store.sagaTask = sagaMiddleware.run(rootSaga)

// v3
// -------
store.runSagaTask = () => {
  store.sagaTask = sagaMiddleware.run(rootSaga)
}
store.runSagaTask()

Usage

In v4, there are no configuration options. withReduxSaga will always run in async mode.

// v4
// -------
withReduxSaga(ExamplePage) // async mode

// v3
// -------
withReduxSaga(ExamplePage) // sync mode
withReduxSaga({async: true})(ExamplePage) // async mode