Accesses the error thrown during an action, loader, or component render to be used in a route module Error Boundary.
export function ErrorBoundary() { const error = useRouteError(); return <div>{error.message}</div>;} Copy
export function ErrorBoundary() { const error = useRouteError(); return <div>{error.message}</div>;}
Accesses the error thrown during an action, loader, or component render to be used in a route module Error Boundary.