derived
derived<
T>(sources,compute):ReadonlySignal<T>
Defined in: ui/binding/signal.ts:50
A read-only signal computed from sources; recomputes (and notifies) whenever
any source changes. Its subscriptions live for the process — use for
app-lifetime derivations (e.g. health / maxHealth).
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”sources
Section titled “sources”ReadonlySignal<unknown>[]
compute
Section titled “compute”() => T