react-redux
9.3.1 · 27 Oct 2026MIT54.9M / weekRepositorynpmAtom feed
Upgrading react-redux From 5.1.2 to 6.0.0
1 release in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 0
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- breaking6.0.0
- breaking6.0.0
Release by release
- breaking
The
withRefoption toconnecthas been replaced withforwardRef. If{forwardRef : true}has been passed toconnect, adding a ref to the connected wrapper component will actually return the instance of the wrapped component. - breaking
Passing
storeas a prop to a connected component is no longer supported. Instead, you may pass a customcontext={MyContext}prop to both<Provider>and<ConnectedComponent>. You may also pass{context : MyContext}as an option toconnect. - fixed
Ensure connectAdvanced only re-renders if derived props change
- breaking
4 other lines we could not sort, mostly version bumps
- 6.0.0
Use React.createContext()
- 6.0.0
Use Prettier
- 6.0.0
Only run isValidElementType in development builds
- 6.0.0
Treat
nullas a valid plain object prototype inisPlainObject()