redux
5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed
Upgrading redux From 0.8.1 to 0.9.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 0
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- breaking0.9.0
9 other lines we could not sort, mostly version bumps
- 0.9.0
createDispatchernow returns a function you need to give tocreateRedux - 0.9.0
createReduxis the primary API you'll use for initialization - 0.9.0
Instead of
dispatcherprop, adispatchfunction prop is injected by the<Connector>and@connect - 0.9.0
Instead of
dispatcherprop,<Provider>and@provideaccept areduxprop - 0.9.0
Instead of
dispatcher.getAtom(), useredux.getState() - 0.9.0
Instead of
dispatcher.setAtom(), you may pass a secondinitialStateargument tocreateRedux - 0.9.0
Instead of
dispatcher.perfrorm()ordispatcher.dispatch(), useredux.dispatch() - 0.9.0
bindActionsis renamed tobindActionCreatorsand acceptsdispatchas the second parameter - 0.9.0
You may skip
composeStoresandcreateDispatchercompletely and just usecreateRedux(stores)as a shortcut