router
router copied to clipboard
Failed to reset error component properly
Describe the bug
I can't reset the error component neither through navigation nor through router.load().
Your Example Website or App
https://stackblitz.com/github/Zebeqo/tsr-reset-error-component
Steps to Reproduce the Bug or Issue
case 1
- Click on the link to
/a - Click
Trigger error componentto display the error component of/a - Click the link to
/bin the error component of/a, and the default error component is displayed.
case 2
- Click on the link to
/a - Click
Trigger error componentto display the error component of/a - Clicking
router.load()or the link to/ain the error component of/astill displays the error component.
- The only way to reset the error component is to click the link to
/abefore clicking the link to/bin the error component.
Expected behavior
case 1
Show component of b when click the link to /b in the error component of /a.
case 2
Shows component of a when click router.load() or the link to /a in the error component of /a
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Chrome
- Version: 120.0
Additional context
No response