Potential breaking changes
- A minor release before 1.0 may contain incompatible changes.
0.8.1 → 0.9.0
- The changelog explicitly labels a breaking change.
This release brings breaking changes necessary to start experimenting with middleware and extensibility (#6, #55). It does not bring any support for middleware per se, but it untangles “Dispatcher” (a function that tells how actions turn into state updates) from “Redux” (an instance holding the current state and managing subscriptions). It is now possible to specify your own Dispatcher if you want to experiment with ideas like middleware, time travel, action creators returning Promises or Observables, etc.
Internal Refactoring & Custom Dispatchers
This release brings breaking changes necessary to start experimenting with middleware and extensibility (#6, #55). It does not bring any support for middleware per se, but it untangles “Dispatcher” (a function that tells how actions turn into state updates) from “Redux” (an instance holding the current state and managing subscriptions). It is now possible to specify your own Dispatcher if you want to experiment with ideas like middleware, time travel, action creators returning Promises or Observables, etc.
createDispatchernow returns a function you need to give tocreateReduxcreateReduxis the primary API you'll use for initialization- Instead of
dispatcherprop, adispatchfunction prop is injected by the<Connector>and@connect - Instead of
dispatcherprop,<Provider>and@provideaccept areduxprop - Instead of
dispatcher.getAtom(), useredux.getState() - Instead of
dispatcher.setAtom(), you may pass a secondinitialStateargument tocreateRedux