Skip to content
Source
Sign inSign up
TanStack/router

Failed to reset error component when defaultErrorComponent is set #2162

Send to my agent
ClosedmarcinTichoniuk(GitHub profile, opens in a new tab) opened this issue 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

  1. SeanCassiere added labelsbug

Sign in to join this conversation.