Datalayer Desktop - v0.0.2
    Preparing search index...

    Error boundary component for notebook components that catches and handles errors gracefully.

    Hierarchy

    • Component<
          NotebookErrorBoundaryProps,
          { errorInfo: string
          | null; hasError: boolean; isWidgetError: boolean },
      >
      • default
    Index

    Constructors

    Methods

    • Lifecycle method called when an error is caught. Logs error details and calls the onError callback.

      Parameters

      • error: Error

        The error that was thrown

      • _errorInfo: ErrorInfo

        Additional error information from React (unused)

      Returns void

    • Returns
          | undefined
          | null
          | string
          | number
          | boolean
          | Iterable<ReactNode, any, any>
          | Element

    • Static method to update state when an error is caught

      Parameters

      • error: Error

        The error that was thrown

      Returns { errorInfo: null | string; hasError: boolean; isWidgetError: boolean }

      Updated state object