We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
React router loaders run twice when using React.StrictMode
React.StrictMode
1.18.5
https://stackblitz.com/edit/vitejs-vite-jbnrwj?file=src%2Fmain.tsx&terminal=dev
Loader
console.log
Routes
The loader should only run once
No response
Might be related to remix-run/react-router#10605
The text was updated successfully, but these errors were encountered:
Hey @ferretwithaberet, thanks for opening this issue and providing the related issue. I just released v1.18.7 with the fix.
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
React router loaders run twice when using
React.StrictMode
Generouted Version
1.18.5
Your Example Website or App or Reproduction
https://stackblitz.com/edit/vitejs-vite-jbnrwj?file=src%2Fmain.tsx&terminal=dev
Steps to Reproduce the Bug or Issue
Loader
;console.log
inside theLoader
;React.StrictMode
above theRoutes
component;Loader
runs twice.Expected Behavior
The loader should only run once
Screenshots or Videos
No response
Platform
Additional context
Might be related to remix-run/react-router#10605
The text was updated successfully, but these errors were encountered: