Skip to content

@jsvision/ui / Computed

Interface: Computed()<T>

Defined in: ui/src/reactive/types.ts:34

A read-only derived value: lazy + memoized. Call it to read (and subscribe); .peek() reads without subscribing.

Type Parameters

T

T

Computed(): T

Defined in: ui/src/reactive/types.ts:36

Read the (cached) value; subscribes the running computation, if any.

Returns

T

Methods

peek()

peek(): T

Defined in: ui/src/reactive/types.ts:38

Read the cached value without subscribing the running computation.

Returns

T