Skip to content
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

[Bug]: React-router does not work with react 18, besides using router v6.12.0 #11994

Closed
vitorioMarcapo opened this issue Sep 13, 2024 · 1 comment
Labels

Comments

@vitorioMarcapo
Copy link

vitorioMarcapo commented Sep 13, 2024

What version of React Router are you using?

6.23.1

Steps to Reproduce

I have updated my application from react v16 to v18 and suddenly all of the navigation - sidebar, navbar, outlets is not working. Nothing in the console suggest what is the issue as there are no errors at all. The only way to make the all of the navigation to work is to use react-router version - 6.12.0, anything else besides it fails.

The only change I have made so far, after updating to react v18 is to use the new createRoot api.
Screenshot at Sep 13 11-51-28

Expected Behavior

I'm expecting react-router to work the same with react v18 as it was working with react 16

Actual Behavior

None of the links, useNavigate hook, Outlets is working as expected. I am only able to load a route initially and the change of the url is happening in the url bar, but the application is frozen and nothing happens.

@vitorioMarcapo vitorioMarcapo changed the title [Bug]: React-router does not work with react 18 and above [Bug]: React-router does not work with react 18, besides using v 6.12.0 Sep 13, 2024
@vitorioMarcapo vitorioMarcapo changed the title [Bug]: React-router does not work with react 18, besides using v 6.12.0 [Bug]: React-router does not work with react 18, besides using router v6.12.0 Sep 13, 2024
@vitorioMarcapo
Copy link
Author

Found the problem which was project related and nothing to do with react-router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant