Documentation
On this page

Function · Core and Composition

ErrorBoundary

Restores the previous native tree and renders fallback content after a descendant fails.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
ErrorBoundary(props: ErrorBoundaryProps): GuiElement

Parameters

NameTypeDescription
propsErrorBoundaryPropsProtected children and the fallback renderer.

Returns

GuiElement — The boundary element consumed by the GUI renderer.

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:34 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.