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

Fix doubling hash in React StrictMode #1728

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TomKalina
Copy link

@TomKalina TomKalina commented Nov 14, 2023

Hello!

We are having the following problem in our application.

We are using <React.StrictMode> in the application, this causes the application to redirect twice in dev mode.
This forces us to double the previous hash during development because it calls the same router logic twice.
For example it makes exanple.com/#hi become exanple.com/#hi#hi after the update

This fix would prevent that from happening. If so, would you have handled this differently?

Thank you very much for Inertia! It's a cool project 😉

@TomKalina TomKalina changed the title Fix doubling hash in StrictMode Fix doubling hash in React StrictMode Nov 14, 2023
jrson83 added a commit to inertiajs-revamped/inertia that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant