Skip to content

Error boundaries #2889

@slorber

Description

@slorber

💥 Proposal

There's no getDerivedStateFromError or componentDidCatch in Docusaurus v2.

Errors might not happen very often, particularly most of them would simple make the build fail.

But it might still be useful to add a default global error boundary in case the code of the user produces a runtime error. Some people might introduce buggy code in pages that might crash at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: intermediateIssues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions