@dxos/react-ui
    Preparing search index...

    Variable ErrorBoundaryConst

    ErrorBoundary: (
        { children, name, FallbackComponent, fallbackRender, resetKeys, events, onError, onReset, }: ErrorBoundaryProps,
    ) => React.JSX.Element

    Error boundary that catches both React render errors and unhandled promise rejections. The unhandledrejection listener lives in the parent component so it remains active even after the fallback renders (unlike a child-based approach where the listener unmounts when the error boundary triggers).

    Type declaration

      • (
            { children, name, FallbackComponent, fallbackRender, resetKeys, events, onError, onReset, }: ErrorBoundaryProps,
        ): React.JSX.Element
      • Parameters

        • { children, name, FallbackComponent, fallbackRender, resetKeys, events, onError, onReset, }: ErrorBoundaryProps

        Returns React.JSX.Element