Documents / @faasjs/ant-design / ErrorBoundaryProps
Interface: ErrorBoundaryProps
Props for the ErrorBoundary component.
Properties
children?
optionalchildren?:ReactNode
Descendant elements protected by the boundary.
errorChildren?
optionalerrorChildren?:ReactElement<ErrorChildrenProps,string|JSXElementConstructor<any>>
Custom fallback element cloned with captured error details.
onError?
optionalonError?: (error,info) =>void
Callback invoked after a descendant throws during rendering or lifecycle work.
Parameters
error
Error | null
info
any
Returns
void