Skip to content

[Docs]: Error Boundary documentation is missing important aspects & incorrect #14433

@oeed

Description

@oeed

Describe what's incorrect/missing in the documentation

The current documentation for Error Boundary seems to be missing a lot of information and includes what seems to incorrect information.

It does not currently show you how to link an error boundary to your routes (data or framework). It also references a Route.ErrorBoundaryProps type from "./+types/root". I wasn't able to find that prop type anywhere, and the RouteObject ErrorBoundary field expects {} as props.

After some digging online it appears you're actually meant to use useRouteError, but that isn't noted on the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions