ErrorBoundaryProps
Defined in: packages/ui-react/src/components/ErrorBoundary.tsx:31
Properties
Section titled “Properties”children
Section titled “children”children:
ReactNode
Defined in: packages/ui-react/src/components/ErrorBoundary.tsx:32
fallback?
Section titled “fallback?”
optionalfallback?: (error,reset) =>ReactNode
Defined in: packages/ui-react/src/components/ErrorBoundary.tsx:34
自定义 fallback;不传则用默认 UI
Parameters
Section titled “Parameters”Error
() => void
Returns
Section titled “Returns”ReactNode
onError?
Section titled “onError?”
optionalonError?: (error,info) =>void
Defined in: packages/ui-react/src/components/ErrorBoundary.tsx:36
错误回调(上报等),不传则 console.error
Parameters
Section titled “Parameters”Error
ErrorInfo
Returns
Section titled “Returns”void