Logos DX
    Preparing search index...

    Class ObserverEngine<Shape>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string

    Methods

    • Returns facts about the the internal state of the observable instance.

      Returns {
          hasSpy: boolean;
          listenerCounts: Record<string, number>;
          listeners: (keyof Shape)[];
          rgxListeners: string[];
      }

    • Enables or disables debugging for the observable instance. Works in conjunction with your spy function. Provides a stack trace of events that are triggered, listened to, and cleaned up.

      Parameters

      • on: boolean = true

        Whether to enable or disable debugging

      Returns void