Signal
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:91
A live signal instance bound to a specific Store.
Signal instances are created internally when you use a SignalDef with the Store.
You typically don’t construct these directly—use signal to create definitions
and store.setSignal() / store.query() to interact with them.
Extends
Section titled “Extends”LiveStoreQueryBase<T>
Type Parameters
Section titled “Type Parameters”T
Implements
Section titled “Implements”ISignal<T>
Properties
Section titled “Properties”__result!
Section titled “__result!”__result!:
T
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:210
Type-level only—extracts the result type from a LiveQuery
Implementation of
Section titled “Implementation of”ISignal.__result!
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.__result!
_tag:
"signal"
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:92
Implementation of
Section titled “Implementation of”ISignal._tag
Overrides
Section titled “Overrides”LiveStoreQueryBase._tag
[TypeId]
Section titled “[TypeId]”[TypeId]: typeof
TypeId=TypeId
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:212
Implementation of
Section titled “Implementation of”ISignal.[TypeId]
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.[TypeId]
activeSubscriptions
Section titled “activeSubscriptions”activeSubscriptions:
Set<StackInfo>
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:222
Stack traces of active subscriptions (for debugging)
Implementation of
Section titled “Implementation of”ISignal.activeSubscriptions
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.activeSubscriptions
def:
SignalDef<T>
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:97
Implementation of
Section titled “Implementation of”ISignal.def
Overrides
Section titled “Overrides”LiveStoreQueryBase.def
executionTimes
Section titled “executionTimes”executionTimes:
number[] =[]
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:233
Execution times in milliseconds (for performance monitoring)
Implementation of
Section titled “Implementation of”ISignal.executionTimes
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.executionTimes
id:
number
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:211
Unique identifier for this query instance
Implementation of
Section titled “Implementation of”ISignal.id
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.id
isDestroyed
Section titled “isDestroyed”isDestroyed:
boolean=false
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:236
Whether this query instance has been destroyed
Implementation of
Section titled “Implementation of”ISignal.isDestroyed
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.isDestroyed
label:
string
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:94
Human-readable label for the query for debugging
Implementation of
Section titled “Implementation of”ISignal.label
Overrides
Section titled “Overrides”LiveStoreQueryBase.label
reactivityGraph
Section titled “reactivityGraph”reactivityGraph:
ReactivityGraph
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:95
Implementation of
Section titled “Implementation of”ISignal.reactivityGraph
Overrides
Section titled “Overrides”LiveStoreQueryBase.reactivityGraph
readonlyref:Ref<T,ReactivityGraphContext,RefreshReason>
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:93
The underlying reactive reference in the graph
Implementation of
Section titled “Implementation of”ISignal.ref
results$
Section titled “results$”results$:
Ref<T,ReactivityGraphContext,RefreshReason>
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:96
Implementation of
Section titled “Implementation of”ISignal.results$
Overrides
Section titled “Overrides”LiveStoreQueryBase.results$
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get runs():
number
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:226
Number of times this query has been executed
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”ISignal.runs
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.runs
Methods
Section titled “Methods”destroy()
Section titled “destroy()”destroy():
void
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:134
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”ISignal.destroy
Overrides
Section titled “Overrides”LiveStoreQueryBase.destroy
get():
T
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:130
Returns
Section titled “Returns”T
Implementation of
Section titled “Implementation of”ISignal.get
run(
args):T
Defined in: packages/@livestore/livestore/src/live-queries/base-class.ts:239
Parameters
Section titled “Parameters”debugRefreshReason?
Section titled “debugRefreshReason?”otelContext?
Section titled “otelContext?”Context
Returns
Section titled “Returns”T
Implementation of
Section titled “Implementation of”ISignal.run
Inherited from
Section titled “Inherited from”LiveStoreQueryBase.run
set(
value):void
Defined in: packages/@livestore/livestore/src/live-queries/signal.ts:126
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”ISignal.set