Upgrading redux 0.9 to 0.10
Breaking0.9.0 → 0.10.1Breaking2New1Changed2Fixed1Other1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- If you use React helpers, you now import them from a React-specific path instead of the main package.
- Async action creators that return a function now need the thunk middleware, which the createRedux(stores) shortcut adds automatically but createDispatcher() does not.
Must act 2 items need code or config changes
Drops react.
Installs 40 packages in all (was 41).
What you must change
Breaking2
React Native is now supported, and React-specific parts must be imported from redux/react or redux/react-native.
redux/reactredux/react-nativeReturning a function from an action creator for async dispatches is now thunkMiddleware(), included by createRedux(stores) but not createDispatcher().
thunkMiddleware()createRedux(stores)createDispatcher()getState()