router icon indicating copy to clipboard operation
router copied to clipboard

Failed to reset error component when defaultErrorComponent is set

Open marcinTichoniuk opened this issue 1 year ago • 0 comments

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

  1. Click on the link About
  2. Error will show up on About page
  3. Click on the link Home
  4. Error persist on Home page
  5. Click on the link Home again - error disappears

Expected behavior

  1. Click on the link About
  2. Error will show up on About page
  3. Click on the link Home
  4. Error disappears and Home page 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

marcinTichoniuk avatar Aug 21 '24 06:08 marcinTichoniuk