Enode — API Reference
    Preparing search index...

    Isolates a notification surface so a fault in it can never take down the chrome it's mounted in — a broken bell renders nothing instead of unmounting the whole sidebar. scope labels the report (e.g. "bell", "drawer").

    Hierarchy

    • Component<{ children: ReactNode; scope: string }, { failed: boolean }>
      • NotificationBoundary
    Index

    Constructors

    • Parameters

      • props: { children: ReactNode; scope: string }

      Returns NotificationBoundary

    • Parameters

      • props: { children: ReactNode; scope: string }
      • context: any

        value of the parent Context specified in contextType.

      Returns NotificationBoundary

    Properties

    state: { failed: boolean } = ...

    Methods

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

      Parameters

      • error: unknown

      Returns void