ReactiveValue
Defined in: state/reactive.ts:42
Single typed cell. TEncoded is the codec-encoded form (defaults to T for
identity codecs). With a custom codec like dateCodec(), T = Date and
TEncoded = string — serialize() returns { value: string }, and any
migrate callback returning the new encoded form sees the same shape.
Extends
Section titled “Extends”Reactive.Serializable<{value:TEncoded; }>.Resettable
Type Parameters
Section titled “Type Parameters”T
TEncoded
Section titled “TEncoded”TEncoded = T
Properties
Section titled “Properties”[STATE_KIND]
Section titled “[STATE_KIND]”
readonly[STATE_KIND]:"value"
Defined in: state/reactive.ts:46
Methods
Section titled “Methods”get():
T
Defined in: state/reactive.ts:47
Returns
Section titled “Returns”T
hydrate()
Section titled “hydrate()”hydrate(
raw):void
Defined in: state/reactive.ts:25
Parameters
Section titled “Parameters”TEncoded
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”reset()
Section titled “reset()”reset():
void
Defined in: state/reactive.ts:30
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”serialize()
Section titled “serialize()”serialize():
object
Defined in: state/reactive.ts:24
Returns
Section titled “Returns”object
value:
TEncoded
Inherited from
Section titled “Inherited from”set(
value):void
Defined in: state/reactive.ts:48
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void
subscribe()
Section titled “subscribe()”subscribe(
listener): () =>void
Defined in: state/reactive.ts:19
Parameters
Section titled “Parameters”listener
Section titled “listener”() => void
Returns
Section titled “Returns”() => void