You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though info?: { componentStack: string; } appears in ErrorComponentProps, it is never passed to the error component.
The error info with the component stack is captured though, as it is logged to the console as warning and it is passed to onCatch and defaultOnCatch.
Navigate to that route and see that the component stack is undefined.
In the linked MCVE example, the about route is throwing an error. Opening the link and navigating to the About page will reproduce this.
Expected behavior
The same errorInfo with the component stack that is passed to onCatch as its second parameter would also be passed to the error component in the info prop.
Screenshots or Videos
No response
Platform
OS: WSL
Browser: Edge
Version: 1.64.0
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Router
Describe the bug
Even though
info?: { componentStack: string; }
appears inErrorComponentProps
, it is never passed to the error component.The error info with the component stack is captured though, as it is logged to the console as warning and it is passed to
onCatch
anddefaultOnCatch
.Your Example Website or App
https://stackblitz.com/edit/github-ktjn1n-i4bu1m?file=src%2Fmain.tsx,src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
defaultErrorComponent
:In the linked MCVE example, the about route is throwing an error. Opening the link and navigating to the About page will reproduce this.
Expected behavior
The same
errorInfo
with the component stack that is passed toonCatch
as its second parameter would also be passed to the error component in theinfo
prop.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: