-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Infinite loop on unhandle error using Layout Export with ErrorBoundary #9553
Comments
It looks like there's a note about using
So I don't think this is a bug, but I do get that the error message is a little confusing. I'm not sure if there's anything we can do to improve the error. Probably a question for @brophdawg11 |
The same thing happens with Weirdly enough, the infinite loop disappears if you pass |
The example had been updated without the use of |
The underlying issue here ends up being that I think the fix in the PR is safe to detect this scenario when the |
Got it! I can definitely make sure Thank you so much for taking the time @brophdawg11 ! Might be worth it to mentioned in this doc along side of |
Good call! Added in #9581 |
Note that #9566 will fix the infinite loop and falling back to the minimal root layout when |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Reproduction
This is the positive case with no Layout, but AppShell wrap around App & ErrorBoundary
This is the negative case with Layout Export
Following the example from https://remix.run/docs/en/main/start/tutorial to set up a base example use example here https://remix.run/docs/en/main/file-conventions/root to setup Layout Export and ErrorBoundary
This might be related to this close issue #1678 (comment) but no longer related to React version.
System Info
I can reproduce this with - Node 18 and Node 20 - React 18 - Remix 2.8 & 2.9
Used Package Manager
npm
Expected Behavior
That unhandle error would cause Application error in browser using Layout export
Actual Behavior
Unhandle error cause infinite loading using Layout export
The text was updated successfully, but these errors were encountered: