Struct ErrorBoundaryApi
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
What UseErrorBoundary() returns — react-error-boundary's useErrorBoundary() result.
public readonly struct ErrorBoundaryApi
Properties
- ResetBoundary
Resets the boundary UseErrorBoundary() found above the calling component, as its own reset does with no arguments — react-error-boundary's
resetBoundary.
- ShowBoundary
Makes the calling component throw the error on its next render, which reaches the boundaries above it as any render error does: the first that shows a fallback for it catches it, and one that declines passes it up — react-error-boundary's
showBoundary. Callable from an event handler or an async continuation on the main thread.