Replies: 3 comments
-
|
Principal Engineer on the Web team at @target here - we would find this extremely useful as well! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Proposing #50943 as a potential partial solution here, which also relates to #36641 (comment). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
errorInfo.componentStackinonRecoverableError)Non-Goals
No response
Background
React exposes the hydration error stack as second argument of
onRecoverableError,errorInfo.componentStack(i found about it in this tweeet), Next should print that stack together with the error messageDocs about onRecoverableError: https://legacy.reactjs.org/docs/react-dom-client.html#hydrateroot
Related discussion: #36641
Proposal
Add the component stack to the default
onRecoverableErrorherenext.js/packages/next/src/client/on-recoverable-error.ts
Line 3 in bd8ba61
Beta Was this translation helpful? Give feedback.
All reactions