You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andhasErrorBoundary
, but these are undocumented and do not appear to do anything based on my testing.The text was updated successfully, but these errors were encountered: