g3-toolkit API Reference
    Preparing search index...

    Interface ViewErrorBoundaryProps

    interface ViewErrorBoundaryProps {
        children: ReactNode;
        fallback?: (args: ViewErrorFallbackArgs) => ReactNode;
        onError?: (error: Error, info: ErrorInfo) => void;
    }
    Index

    Properties

    children: ReactNode
    fallback?: (args: ViewErrorFallbackArgs) => ReactNode

    Replacement UI. Receives the error and a retry callback; return whatever the host's error presentation is. Omit for the built-in message-plus-retry fallback.

    onError?: (error: Error, info: ErrorInfo) => void

    Called once per caught error, with React's component stack. Use it to report; the boundary renders the fallback either way.