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
Notice that the outlet renders the error component
Comment out the defaultErrorComponent line in main.tsx
Crash the page again
Notice that the whole page is now replaced with the error component, the navigation links are gone
Expected behavior
defaultErrorComponent should behave as documented, i.e. it should behave as if ErrorComponent is set.
In comparison, defaultNotFoundComponent works as expected in either case. 👍
Screenshots or Videos
Platform
OS: Windows
Browser: Chrome
Version: 1.57.13
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Router
Describe the bug
According to the docs/jsdoc,
defaultErrorComponent
defaults toErrorComponent
, but it doesn't behave as ifErrorComponent
is set.Your Example Website or App
https://stackblitz.com/edit/github-svg4st?file=src%2Fmain.tsx,src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
Crash the page
buttondefaultErrorComponent
line inmain.tsx
Expected behavior
defaultErrorComponent
should behave as documented, i.e. it should behave as ifErrorComponent
is set.In comparison,
defaultNotFoundComponent
works as expected in either case. 👍Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: