Interface: ErrorBoundaryProps

Estimated reading time: less than 1 minute

The props for the ErrorBoundary component.

See

ErrorBoundary

Properties

catch

catch: Element | (error) => Element;

The error boundary to use if the async children throw an error.

The error will be string timeout if the rejection was caused by the timeout property.

If the timeout gets triggered, it will throw an HtmlTimeout error.


children

children: Children

The async children to render as soon as they are ready.


error?

optional error: object;

The error class we should throw if the timeout gets triggered. Defaults to HtmlTimeout

reject()

reject(): never;
Returns

never


timeout?

optional timeout: number;

If we should use the catch error boundary if the children takes longer than the timeout. Use undefined or 0 to disable the timeout.