Closed Reizar closed 3 years ago
Unless you can share the actual repo or a reproduction in Codesandbox, this is almost definitely caused by something external to the library (build system, another library, browser extension, etc).
Were you able to fix the issue @Reizar ? - I am also facing the same issue
Were you able to fix the issue @Reizar ? - I am also facing the same issue
@smriti-spotnana Yes I was. timdorr was 100% correct and this was a problem in my own codebase. Took a fair bit of digging, but there was some shared code with our react native codebase that was interferring and causing the problem. I think it's highly specific to my codebase, so not to sure if it could really help you sorry.
Were you able to fix the issue @Reizar ? - I am also facing the same issue
@smriti-spotnana Yes I was. timdorr was 100% correct and this was a problem in my own codebase. Took a fair bit of digging, but there was some shared code with our react native codebase that was interferring and causing the problem. I think it's highly specific to my codebase, so not to sure if it could really help you sorry.
@Reizar - i am facing same issue. Can you share the root cause of the issue, that would be helpful for me to debug
Were you able to fix the issue @Reizar ? - I am also facing the same issue
@smriti-spotnana Yes I was. timdorr was 100% correct and this was a problem in my own codebase. Took a fair bit of digging, but there was some shared code with our react native codebase that was interferring and causing the problem. I think it's highly specific to my codebase, so not to sure if it could really help you sorry.
@Reizar - i am facing same issue. Can you share the root cause of the issue, that would be helpful for me to debug
@mbellary-chwy Sure thing, basically I had copy pasted a lot of shared code originally written for our React Native codebase. Both our React and React Native codebases make use of the ActionCable JS library from rails.
In order to get that library to work in React Native, I add to add these lines of code:
global.addEventListener = () => {};
global.removeEventListener = () => {};
When adding our action cable related code into the React project, I had forgotten to remove them. Which of course broke things. As soon as I removed these lines from our React project, react router started working properly again. ( Kinda obvious as to why it would break things, but they were hidden a fair bit down in the project and took a little bit of debugging to uncover ).
Not sure if this helps at all for you, but hopefully its of some use.
Same problem here, any fix or i should just downgrade it to v5?
Is anyone facing this issue ? and was able to solve it.
The problem for me is that the page/component throws an error resulting in a completely empty page. When clicking Back
from the Browser changes the route but it doesn't render the component.
Facing this issue
@ad9999 Where you able to solve the issue? if you did can you please share the solution, thanks.
Version
"react-router": "^6.0.0-beta.0", "react-router-dom": "^6.0.0-beta.0", "react": "^17.0.0", "react-dom": "^17.0.0",
Test Case
( This is basically a snippet of the code from my app showing how I'm laying out my routes ).
Steps to reproduce
<Link to="/auth/register">Register</Link>
). Register page is then loaded ( and url is updated to/auth/register
Expected Behavior
Actual Behavior
Other notes