Type alias RecalcSource

RecalcSource: ((cb: (() => void)) => unknown)

A subscribable function used to trigger signal recalculations

It must accept a callback, and should arrange (via must()) to unsubscribe when its calling job ends. Once subscribed, it should invoke the callback to trigger recalculation of the signal(s) that were targeted via recalcWhen.

Type declaration

    • (cb: (() => void)): unknown
    • Parameters

      • cb: (() => void)
          • (): void
          • Returns void

      Returns unknown