-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
A rejected promise in <Await> in a notFoundComponent is not caught by the defaultErrorComponent
#2256
Comments
Please attach a valid minimal reproduction showing off the issue in question. |
This issue only happens during server-side-rendering. So I’ve used basic-ssr-file-based as an example. See https://stackblitz.com/edit/github-5vsdzx What has been changed:
Steps to reproduce:
|
An @lo1tuma what's your expectation as to what's supposed to happen here? @tannerlinsley what's Start's desired expectation here? |
See also this discussion I’m basically looking for a unified way to load data in a
My expectation would be that the error is getting caught and instead of rendering the |
Which project does this relate to?
Router
Describe the bug
I‘m using
<Await>
to fetch some data in anotFoundComponent
. When usingrenderToPipeableStream()
I can see the following object has been thrown and not caught by an error boundary:Your Example Website or App
https://stackblitz.com/edit/github-yk78pg-wpq5bb
Steps to Reproduce the Bug or Issue
npm i
npm run compile
node dist/main.js
Expected behavior
I would expect:
defaultErrorComponent
being invoked with the rejected promise from<Await />
Error
instead of the serialized server error objectScreenshots or Videos
No response
Platform
1.52.4
Additional context
No response
The text was updated successfully, but these errors were encountered: