Closed
Description
React-Redux v6 will use React's ( new ) context api which is not compatible with the legacy context API. By accessing store from context ( reference ) it causes the app to break when it tries to dispatch the LOCATION_CHANGE
action.
As @timdoor has described in its breaking changes:
Passing store as a prop to a connected component is no longer supported. Instead, you may pass a custom
context={MyContext}
prop to both<Provider>
and<ConnectedComponent>
. You may also pass{context : MyContext}
as an option to connect.
Related React-Redux links:
Metadata
Metadata
Assignees
Labels
No labels