Function: durableSignal()
durableSignal<
T>(key,initial):SignalBox<T>
Defined in: durable.ts:69
The durable roots of an app are almost always signals — the slider position, the selected sample, the camera. durableSignal is createSignal wrapped in durable(): created once, adopted by every re-evaluated module, so a hot edit never resets what the user touched.
ts
export const angleStep = durableSignal("param:angleStep", 71);Keys share one page-wide namespace (the durable registry), so prefix them per page in a multi-notebook app: durableSignal("seismos:year", 1994).
Type Parameters
T
T
Parameters
key
string
initial
Exclude<T, Function>
Returns
SignalBox<T>