Class: SignalImpl<T>

index.SignalImpl

Concrete implementation of a mutable reactive signal container.

Type parameters

Name Description
T The type of value held by the signal.

Implements

Table of contents

Constructors

Properties

Accessors

Constructors

constructor

new SignalImpl<T>(initialValue)

Type parameters

Name
T

Parameters

Name Type
initialValue T

Properties

_raw

Private _raw: Object

Type declaration

Name Type
value T

Accessors

[IS_REACTIVE]

get [IS_REACTIVE](): boolean

Reactivity flag indicating this container is a reactive primitive.

Returns

boolean


[RAW_TARGET]

get [RAW_TARGET](): Object

Returns the underlying unproxied raw container object for non-tracking reads.

Returns

Object

Name Type
value T

value

get value(): T

Reads the current signal value and records a dependency edge in the active reactive context.

Returns

T

Implementation of

Signal.value

set value(nextValue): void

Updates the signal value and triggers notifications to dependent subscribers if the value changed.

Parameters

Name Type
nextValue T

Returns

void

Implementation of

Signal.value