Error boundaries #2889
Labels
difficulty: intermediate
Issues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
💥 Proposal
There's no
getDerivedStateFromError
orcomponentDidCatch
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.
The text was updated successfully, but these errors were encountered: