Class ErrorBoundaryReset
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
An error boundary's reset — react-error-boundary's resetErrorBoundary. One instance per boundary,
reference-stable for the boundary's lifetime; it converts to an System.Action that invokes it with
no arguments, so it can be passed as an onClick.
public sealed class ErrorBoundaryReset
- Inheritance
-
objectErrorBoundaryReset
Methods
- Invoke(params object?[])
While the boundary shows its fallback, calls its
onResetwith ImperativeApi andargs, then queues the reset as a state update: the boundary's next render on the lane the call is made on renders its children again. While it shows its children, does nothing.
Operators
- implicit operator Action(ErrorBoundaryReset)
The reference-stable action that invokes
resetwith no arguments.