Skip to content

SignalDef

Defined in: live-queries/base-class.ts:46

A signal definition representing ephemeral, local-only reactive state.

SignalDef is the type returned by signal. It’s a blueprint for creating signal instances—the actual instance is created when you use the definition with a Store via store.query() or store.setSignal().

T

The type of value the signal holds

[key: number]: (that) => boolean | () => number

_tag: "signal-def"

Defined in: live-queries/base-class.ts:47

LiveQueryDef._tag


defaultValue: T

Defined in: live-queries/base-class.ts:49

The initial value used when the signal is first created


hash: string

Defined in: live-queries/base-class.ts:51

Unique identifier for caching and deduplication

LiveQueryDef.hash


label: string

Defined in: live-queries/base-class.ts:53

Human-readable label for debugging and devtools

LiveQueryDef.label


make: (ctx) => RcRef<ISignal<T>>

Defined in: live-queries/base-class.ts:55

Creates a reference-counted signal instance bound to a Store’s reactivity graph

ReactivityGraphContext

RcRef<ISignal<T>>

LiveQueryDef.make