ObserverErrorHandler: (error: unknown, context: ObserverErrorContext) => void

Hook fired when a subscriber throws during observer dispatch.

Type declaration

    • (error: unknown, context: ObserverErrorContext): void
    • Parameters

      • error: unknown

        The thrown value, surfaced as unknown per TypeScript's catch-clause typing.

      • context: ObserverErrorContext

        Attribution metadata for the failed dispatch.

      Returns void