butterfloat / ErrorBoundaryProps
Interface: ErrorBoundaryProps
Defined in: error-boundary.ts:24
Properties supported by the <ErrorBoundary>
pseudo-component
Properties
errorView
errorView:
SimpleComponent
|ContextComponent
<ErrorViewProps
>
Defined in: error-boundary.ts:28
Component to view when an error occurs below this boundary.
errorViewBindMode?
optional
errorViewBindMode:"append"
|"prepend"
Defined in: error-boundary.ts:33
Bind mode for error views. Defaults to 'prepend'.
preserveOnComplete?
optional
preserveOnComplete:boolean
Defined in: error-boundary.ts:44
Preserve DOM contents of the errored tree.
This is primarily a Debug tool. Components will still be unbound
as a part of completion so it leaves "dead" components around,
which are useful for debugging. Your error view may be enough
to warn users that the surrounding components have died, in which
case you may be able to make this useful in production builds as
well (as opposed to setting this in a raw RuntimeOptions
).