Hiyve Components - v1.0.0
    Preparing search index...

    Props for the ErrorBoundary component.

    interface ErrorBoundaryProps {
        children: ReactNode;
        fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode);
        onError?: (error: Error, errorInfo: ErrorInfo) => void;
    }
    Index

    Properties

    children: ReactNode

    Content to render when no error has occurred

    fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode)

    Content to render when an error is caught. Receives the error and a reset function.

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

    Callback when an error is caught