Skip to content

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>

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)