router icon indicating copy to clipboard operation
router copied to clipboard

Failed to reset error component properly

Open Zebeqo opened this issue 1 year ago • 0 comments

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

  1. Click on the link to /a
  2. Click Trigger error component to display the error component of /a
  3. Click the link to /b in the error component of /a, and the default error component is displayed.

case 2

  1. Click on the link to /a
  2. Click Trigger error component to display the error component of /a
  3. Clicking router.load() or the link to /a in the error component of /a still displays the error component.
  • The only way to reset the error component is to click the link to /a before clicking the link to /b in 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

Zebeqo avatar Feb 01 '24 14:02 Zebeqo