Skip to content

Upgrading redux 0.8 to 0.9

Breaking0.8.1 → 0.9.0Breaking9New1

BreakingUpgrade verdict

8 breaking changes.

  • 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.
Top 3 of 8 that need code or config changes
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()createReduxinitialState
dispatcher.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.
bindActionsbindActionCreatorsdispatch
Provider and @provide now accept a redux prop instead of a dispatcher prop.
ProviderprovidereduxdispatcherDispatcherRedux
createDispatcher now returns a function that must be passed to createRedux.
createDispatchercreateRedux
createRedux is now the primary API for initialization.
createRedux
Connector and @connect now inject a dispatch function prop instead of a dispatcher prop.
Connectorconnectdispatchdispatcher