Intermact API Reference / @intermact/core / createSignalWithId
Function: createSignalWithId()
createSignalWithId<
T>(id,initial):Signal<T>
Defined in: packages/core/src/reactive/signal.ts:88
Create a signal bound to an explicit id (design.md §17 deserialization). The id from a SerializedProject must match the signalId recorded in the timeline tween-signal ops so the deserialized ReactiveEngine drives the right cell. Only deserialize should use this; authoring code uses signal/ctx.signal.
Type Parameters
T
T
Parameters
id
number
initial
T
Returns
Signal<T>