dacha
    Preparing search index...

    Interface UIValue<T>

    A value the interface can read and follow. subscribe calls the listener with the current value at once and again on every change, and returns a function that stops it.

    Type Parameters

    • T
    Index
    • Returns the current value.

      Returns T

    • Calls listener with the current value now and on every change.

      Parameters

      • listener: (value: T) => void

        Receives the value.

      Returns () => void

      A function that stops the listener.