WHITEBOARD SAAS
PanelErrorBoundary
Class-based error boundary with a Retry button. Drop it around panel bodies that load unstable widgets.
PREVIEW
Healthy widget
SOURCE
import { PanelErrorBoundary } from '@objectifthunes/whiteboard'
<PanelErrorBoundary fallbackMessage="This panel crashed.">
<SomePotentiallyBrokenWidget />
</PanelErrorBoundary>NOTES
A class-based error boundary that catches anything thrown inside its subtree on render. Renders a friendly fallback + a Retry button (which resets the boundary; the underlying error must also be fixed for the retry to succeed).
One per panel body — not one per whole canvas — so a single bad widget can't blank the whole studio.