mcp-use TypeScript API
    Preparing search index...

    Class ErrorBoundary

    Catches React errors in the view tree and renders a fallback instead of crashing the iframe.

    Hierarchy

    • Component<ErrorBoundaryProps, { error: Error | null; hasError: boolean }>
      • ErrorBoundary
    Index
    • Parameters

      • props: ErrorBoundaryProps

      Returns ErrorBoundary

    • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

      Parameters

      • error: Error
      • errorInfo: ErrorInfo

      Returns void

    • Renders the child tree or the configured error fallback.

      Returns
          | string
          | number
          | bigint
          | boolean
          | Iterable<ReactNode, any, any>
          | Promise<AwaitedReactNode>
          | Element
          | null
          | undefined

    • Records a render failure for the fallback render pass.

      Parameters

      • error: Error

      Returns { error: Error; hasError: boolean }