Skip to content

In React ErrorBoundary, fallback function should not have nullable error type #2892

@twavv

Description

@twavv

As far as I can tell, there's no reason for this to be Error | null instead of just Error. The only time the fallback function is invoked is inside an if (error) { ... } branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions