You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're setting the browser location before using the React Router navigate(). This is superceding the library's navigation and will refresh the entire page, clearing out any saved state and reloading your application. You should use just the navigate() function alone.
What version of React Router are you using?
6.22.1
Steps to Reproduce
When we defined our routes like this, then sometime the routes are not getting redirect using navigate properly sometimes.
Expected Behavior
When using navigate it is not redirectingActual Behavior
It should redirect to that route
The text was updated successfully, but these errors were encountered: