variable / @typed/fx/RefSubject

CurrentComputedBehavior

Selects whether a computed Fx observes only its current value or also follows later pushes.

Package version
2.0.0-beta.7
Category
Observation policy
Since
1.18.0

Import

import { CurrentComputedBehavior } from "@typed/fx/RefSubject";

Signatures

export declare const CurrentComputedBehavior: Context.Reference<"one" | "multiple">;

Why

"multiple" (the default) emits the current value and then follows distinct source pushes. "one" emits only the current value. Hydration temporarily uses "one" when it must resolve a single server value without leaving a live observation running.

Ownership and lifetime

This is an Effect Context reference with a default value, not mutable global state. Supplying a value changes computed observation only in the provided Effect context; the observing Scope still owns any subscription created by "multiple".

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source