-
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
Incorrect error message when server loader throws an error and clientLoader is present #8300
Comments
After some further investigation, it seems the problem is that calling |
Thanks for the reproduction and investigation! |
Resolved by #8304 and will be in the next release 👍 |
@brophdawg11 you guys are lightning fast. Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Reproduction
https://stackblitz.com/edit/remix-run-remix-uyj9e9?file=app%2Froutes%2F_index.tsx
System Info
Used Package Manager
npm
Expected Behavior
When an error is thrown in a server loader, I expect to be able to capture that error message and display it to the user in an error boundary. The error message in the reproduction that should be displayed is:
Actual Behavior
I get an initial flash of the expected error message, but quickly overridden by:
If you remove the clientLoader, this behavior goes away.
Note: if you are looking at the stackblitz and see the "correct" error message, just refresh the app and most of the time you will see the "incorrect" error message as described above.
The text was updated successfully, but these errors were encountered: