Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: Using an Error Boundary in Declarative Move #13281

Open
mark-monteiro opened this issue Mar 21, 2025 · 0 comments
Open

[Docs]: Using an Error Boundary in Declarative Move #13281

mark-monteiro opened this issue Mar 21, 2025 · 0 comments
Labels

Comments

@mark-monteiro
Copy link

Describe what's incorrect/missing in the documentation

I am using react-router in 'declarative mode' and I would like to wrap all of my routes in an error boundary, but I can't find any documentation on how to do this.

I am using a layout route, so I tried wrapping the <Outlet/> component in my error boundary. This partially works, but the error stays in place when navigating to a different page that does not have an error. I need the user to be able to navigate away from the page with the error.

I can see that the component has properties defined, errorElement, ErrorBoundary and hasErrorBoundary, but these are undocumented and do not appear to do anything based on my testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant