-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Links change URL but not rendered component #4975
Comments
This guide holds the answers you seek: https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/blocked-updates.md |
My issue was using multiple WRONG: App.js
Header.js
CORRECT: App.js
Header.js
Edited for clarity. |
Just to add, for me it was because my AppLayout class was a |
I have the bulk of my code located here if you would like to look: https://gist.github.com/cameronb23/3e8841efbd09b9cb135c5702817e5563
I have my routes and navigation set up to reflect that each should direct to a certain route. However, when I click those navigation elements, it changes the URL in my browser, but does not update anything being rendered in the DOM.
Expected Behavior
Switch to route specified and update rendered component and URL accordingly
Actual Behavior
Changes URL but not actual component that is supposed to be rendered on each route.
The text was updated successfully, but these errors were encountered: