interface / @typed/fx

RefSubject.HydratedRefSubject

Defines the hydrated ref subject state contract.

Package version
2.0.0-beta.13
Category
Hydration protocol
Since
2.0.0
Member of
RefSubject

Import

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

Access RefSubject.HydratedRefSubject through the imported RefSubject export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface HydratedRefSubject<A, E = never, R = never, RH = R> extends RefSubject<A, E, R>, HydrationRef<E, RH> {
}
export declare namespace HydratedRefSubject {
    type Any = HydratedRefSubject<any, any, any, any>;
    type HydrationError<T> = T extends HydrationRef<infer E, any> ? E : never;
    type HydrationServices<T> = T extends HydrationRef<any, infer R> ? R : never;
}

Why

Combines writable renderer-independent state with its hydration boundary so restoration precedes ordinary pushed updates.

Ownership and lifetime

HydratedRefSubject is a contract and performs no acquisition. Implementations retain the errors, services, interruption, and Scope requirements expressed by its members.

Members

Other public imports

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

Source