-
Notifications
You must be signed in to change notification settings - Fork 159
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
[Bug?]: Unable to use ErrorBoundary
when throwing Error from cached function in combination with load
#399
Comments
Yeah this looks like a router issue. I'm going to move it there. |
Interesting.. The problem here is that unless the promises are awaited we can't catch them. They will be uncaught. Like I can't just wrap the load function in a |
This just hit me as well. The node process is exiting on the uncaught exception. It does not require having a route load function for me:
|
Connecting |
For the end user but not something we can do with the library. I mean hmm.. I suppose the cached functions could not throw under some circumstances. |
Duplicates
Latest version
Current behavior 😯
Node process exits with unhandled exception
Expected behavior 🤔
Load function should ignore errors and ErrorBoundary should get triggered.
Steps to reproduce 🕹
Steps:
http://localhost:3000/house/gryffindor
and make sure that page workshttp://localhost:3000/house/notgryffindor
and see that node process fail with unhandlet exceptionContext 🔦
It should be possible to handle errors in combination with preloading data.
Your environment 🌎
The text was updated successfully, but these errors were encountered: