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
I've run into an odd issue using react-router framework mode with react 18 (I also noticed the issue does not seem to be present in 19). If I have the following component in my root.tsx Layout export,
And then a clientLoader throws an error, rather than displaying the root ErrorBoundary, I cycle through error messages in the browser console and the app becomes unresponsive.
I'm using React Router as a...
framework
Reproduction
reproduction: https://stackblitz.com/edit/github-4zctv3wf?file=app%2Froot.tsx
I've run into an odd issue using react-router framework mode with react 18 (I also noticed the issue does not seem to be present in 19). If I have the following component in my root.tsx Layout export,
And then a clientLoader throws an error, rather than displaying the root ErrorBoundary, I cycle through error messages in the browser console and the app becomes unresponsive.
demo_rr.mov
System Info
Used Package Manager
npm
Expected Behavior
When an Error occurs in the clientLoader, the Error should be caught by the root.tsx ErrorBoundary and display the ErrorBoundary jsx.
Actual Behavior
When an Error occurs in the clientLoader, a loop of errors prints in the console and the application becomes unresponsive.
The text was updated successfully, but these errors were encountered: