-
Notifications
You must be signed in to change notification settings - Fork 960
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
React router with redux not working after updrage to 5.0.0 #803
Comments
Im also having this problem! |
yes, me too with |
Hello guys. |
the same here - I see white-screen without any errors when call history.replace({ search: '?whatever=1' }); Issue appears after upgrading to v5 |
Documentation for migrating from 4 -> 5 would be helpful. |
|
I'm still working through the issues with this, but the thing that jumps out is that the location objects being passed around take on different forms: For example:
Then,
|
EDIT: I am having issues with I found i am getting a in selectors.js, there is code looking for it when validating if it is a router:
|
You probably have to update to the react router v6 alpha as well, as the v5 is explicity specifying v4 history in its dependencies. More likely than not, you will have two (conflicting) history deps if you are still using react-router 5. |
Almost panicked but glad this can be resolved with a temporary downgrade haha. |
@avindra I did actually try upgrading the router to v6 before checking here but I am still having the same issues as marked here. But it may be more an issue with |
Same issue here |
Same issue. Like @readikus, I'm noticing the object changing from place to place. On load, the object fulfills v4 / expected redux action / location, but on location change, the location object is being populated with {action: , location: }. Seems like a nesting problem in a v5 functions' return maybe? |
Same issue here. Downgrading to 4.10.1 fixes the issue. |
Documentation for version 5 can be found in the docs directory. This is the current stable release. Version 5 is used in React Router version 6. Documentation for version 4 can be found on the v4 branch. Version 4 is used in React Router versions 4 and 5. |
- add sentry error tracking - don't upgrade `history`: remix-run/history#803 - don't upgrade `stdlib` due to unknown "gapxsumpw is not a function" error - upgrade all other packages - notably, upgrade to new version of d3: https://github.com/d3/d3/releases/tag/v6.0.0 https://observablehq.com/@d3/d3v6-migration-guide
feels weird that history v5 is at @latest while react-router-dom v6 is at @next |
Are there any updates on this issue? I am still using |
@aarowman:
|
Hello,
Im trying to setup a react redux boilerplate that uses the
react
router withredux
andconnected-react-router
and rely on thecreateBrowserHistory
api from thehistory
package. everything was working fine, until i made the upgrade to 5.0.0 for it then it stopped working throwing the following error in the console when i click on a<Link />
Uncaught Could not find router reducer in state tree, it must be mounted under "router"
PS : I'm already mounting the router reducer in my root reducer.
https://www.loom.com/share/d956b05939af4fada2ec891ae56c8853
The text was updated successfully, but these errors were encountered: