Documentation
On this page

Function · Core and Composition

ErrorBoundary

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

@sharpts/gui · SharpTS 572a2e31be0e

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

src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:34 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.