• Subscribe to value changes without immediate emission.

    Type Parameters

    • TValue

    Parameters

    • val: ReadonlyVal<TValue>
    • subscriber: ValSubscriber<TValue>
    • Optional eager: boolean

      by default subscribers will be notified on next tick. set true to notify subscribers of value changes synchronously.

    Returns ValDisposer

    a disposer function that cancels the subscription