-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken react-router v3 interop with react-redux v7 #6766
Comments
Yeah, we can still push out a v3 update. As long as it's not a breaking change, we're all good. Feel free to submit a PR. |
@krvajal can you post your solution, i have faced the same problem |
@mouhsinelonly there maybe some workaround before next version of react-router v3 🤣The key point is that your route cannot directly use
|
@arthur791004 i know v4 and v5 are out but i have a huge code base and it will be no easy task to move it all to a new version, and i still want to use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Version
This bug was found in
react-router
v3, but not sure if this version is still been supported.The issue
I recently upgrade
react-redux
to v7.0.3 and had the unpleasant surprise to find that it breaks withreact-router
. Here is a CodeSandbox that shows the problem https://codesandbox.io/s/reduxv7reactrouterbug-yb1mdAfter debugging it a little bit found that the error is thrown by React here https://github.com/ReactTraining/react-router/blob/v3/modules/RouterContext.js#L84, after successfully passing the condition on https://github.com/ReactTraining/react-router/blob/v3/modules/RouterContext.js#L76.
It turns out, according to @markerikson,
reduxjs/react-redux#1300 (comment)
The fix should be an easy one IMO, and I can send a PR is needed but would like to know first if v3 is still been supported. I can't afford a rewrite right now.
The text was updated successfully, but these errors were encountered: