@mocanvas/editor · function

DefaultErrorFallback

declare function DefaultErrorFallback({ error, resetError }: TLErrorFallbackProps): react.JSX.Element

What an unhandled error looks like when nothing better is configured: the message, and a button that re-mounts the subtree.

Deliberately plain and self-contained — it must render correctly when the failure is in the very stylesheet or provider the rest of the chrome needs.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.