Type Alias Computation<T>

Computation<T>: ((get: TrackingGetter, scheduled: boolean) => T)

A function that calculates the new value of the signal.

Type Parameters

  • T

Type declaration

    • (get, scheduled): T
    • Parameters

      • get: TrackingGetter

        Tracking function to get values of other signals.

      • scheduled: boolean

        Determines if the recalculation was caused by a dependency update.

      Returns T

      The value of the signal.