Upgrading redux 0.8 to 0.9
Breaking0.8.1 → 0.9.0Breaking9New1
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- dispatcher.getAtom() is replaced by redux.getState().
- dispatcher.setAtom() is replaced by passing a second initialState argument to createRedux.
- dispatcher.perfrorm() and dispatcher.dispatch() are replaced by redux.dispatch().
- bindActions is renamed to bindActionCreators and accepts dispatch as the second parameter.
Must act Top 3 of 8 that need code or config changes
What you must change
Breaking8
dispatcher.getAtom() is replaced by redux.getState().
dispatcher.getAtom()redux.getState()dispatcher.setAtom() is replaced by passing a second initialState argument to createRedux.
dispatcher.setAtom()createReduxinitialStatedispatcher.perfrorm() and dispatcher.dispatch() are replaced by redux.dispatch().
dispatcher.perfrorm()dispatcher.dispatch()redux.dispatch()bindActions is renamed to bindActionCreators and accepts dispatch as the second parameter.
bindActionsbindActionCreatorsdispatchProvider and @provide now accept a redux prop instead of a dispatcher prop.
ProviderprovidereduxdispatcherDispatcherReduxcreateDispatcher now returns a function that must be passed to createRedux.
createDispatchercreateReduxcreateRedux is now the primary API for initialization.
createReduxConnector and @connect now inject a dispatch function prop instead of a dispatcher prop.
Connectorconnectdispatchdispatcher