router
router copied to clipboard
Failed to reset error component when defaultErrorComponent is set
Describe the bug
I can't reset error component through navigation when defaultErrorComponent is set
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-7thcsy
Steps to Reproduce the Bug or Issue
- Click on the link
About - Error will show up on
Aboutpage - Click on the link
Home - Error persist on
Homepage - Click on the link
Homeagain - error disappears
Expected behavior
- Click on the link
About - Error will show up on
Aboutpage - Click on the link
Home - Error disappears and
Homepage content should be displayed
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Chrome
- Version: 127.0
Additional context
Try to remove or comment out defaultErrorComponent - now it's working as expected