function / @typed/react/Hooks

prefetch

Captures the first value for SSR/hydration and closes the temporary subscription before returning.

Package version
1.0.0-beta.13
Category
function

Import

import { prefetch } from "@typed/react/Hooks";

Signatures

export declare function prefetch<A, E, R>(source: Effect.Effect<A, E, R> | Stream.Stream<A, E, R> | Fx.Fx<A, E, R>): Effect.Effect<Data.AsyncData<A, E>, never, Exclude<R, Scope.Scope>>;

Other public imports

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

Source