This repository has been archived by the owner on Sep 12, 2020. It is now read-only.
Releases: bmealhouse/next-redux-saga
Releases · bmealhouse/next-redux-saga
Major bugfix for server side rendering (SSR)
v4.0.2
v4.0.1
v4.0.0
Major Changes
- Push redux-saga to version 1.0.1.: aa5a47c @bbortt
- Move redux-saga to peer dependencies.: 0aaa848 @bbortt
- Use less strict peer dep version: ce91c4f
- Upgrade deps and remove config function call: 82bb4a3
- Update README: dca65e0
- Update readme.md.: 8e279e5 @bbortt
- Update create store accordingly.: fa7ac00 @bbortt
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
v3.0.0
v3.0.0-beta.2
v3.0.0-beta.1
Major Changes
- Adjust HOC to support Next.js v6: ae9df02
v2.0.1
v2.0.0
v1.0.1
v1.0.1