Skip to main content

Function: trackerToSignal()

trackerToSignal(target): Signal<number>

Defined in: src/core/signals.ts:379

Wrap a numeric holder such as a ValueTracker as a writable signal. The signal is seeded from the holder's current value, and writing the signal writes through to the holder.

Parameters​

target​

NumericValueHolder

The holder to wrap (for example a ValueTracker).

Returns​

Signal<number>

A signal that mirrors writes into the holder.