@bodil/signal
    Preparing search index...

    Class Computed<A>

    A signal which contains a reactive computation.

    Type Parameters

    • A

    Hierarchy

    • Computed<A>
      • Computed

    Implements

    • ISignal<A>

    Properties

    "[NODE]": ComputedNode<A>

    Accessors

    • get value(): A

      The current value of the signal.

      When this is read inside a computation function or an effect function, this signal is automatically added to the effect or computed signal as a dependency.

      Returns A

    Methods

    • Get the current value of the signal.

      When this is called inside a computation function or an effect function, this signal is automatically added to the effect or computed signal as a dependency.

      Returns A

    • Subscribe to changes to the value of this signal.

      Parameters

      • callback: (value: A) => void

      Returns Disposable