-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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]: useNavigate does not work in production #11354
Comments
Can you provide some code? When you say it doesn't work, what do you mean? Are you calling |
my main.tsx
my App
and I try use navigate in my login page. Locally everything works, but on the prod site navigate doesn't work
|
When you say it "doesn't work", do you mean it doesn't navigate to Are you sure the Have you tried just adding a button with an |
yes, I tried |
update, I've got the site deployed on Amazon S3 bucket |
What version of React Router are you using?
v6
Steps to Reproduce
I have my standard web application on react, when I work locally, react router dom v6 works correctly, but when I send the code to the server, to my extension site. const navigate = useNavigate(); does not work, at the same time RouterLink works correctly
Expected Behavior
const navigate = useNavigate() work correctly
Actual Behavior
const navigate = useNavigate(); does not work
The text was updated successfully, but these errors were encountered: