inertia icon indicating copy to clipboard operation
inertia copied to clipboard

Fix doubling hash in React StrictMode

Open TomKalina opened this issue 1 year ago • 0 comments

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 avatar Nov 14 '23 09:11 TomKalina