-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Open
Labels
Description
Reproduction
export function ServerComponent() {
throw new Error("something");
}
export function ErrorBoundary({ error }) {
// error is undefined
}
System Info
react-router 7.9.3 framework mode
Used Package Manager
npm
Expected Behavior
Errors should be populated somewhere so they can be appropriately handled, for example:
- Redirecting the user (e.g. the resource needs authentication to view)
- Displaying an error message at the appropriate error boundary (which is not always immediately where the RSC is rendered, as an RSC may not be at the page level)
Actual Behavior
Errors are undefined at every error boundary