Skip to content

navigate is not work when the CatchBoundary catch the error thrown by child route #2852

Open
@Asfamilybank

Description

@Asfamilybank

Which project does this relate to?

Router

Describe the bug

navigate is not work when the CatchBoundary of the father route and it catch the error thrown by beforeLoad function of child route.

I want to use CatchBoundary component to catch child route error, keep the layout not change, after this, my navigate is not work.

Your Example Website or App

https://stackblitz.com/edit/github-ybhmkk

Steps to Reproduce the Bug or Issue

  • click the 403 page navigate menu, and it will throw the forbidden error and render the error component.
  • click the home page navigate menu, the error component is not clear

Expected behavior

As a user, l expected the error component unmount and navigate to home page, but i am seeing the url change to /home, but page is not change.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 131.0.6778.70

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    has workaroundA solution has been provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions