variable / @typed/svelte

prefetch

Resolves a request-local first snapshot and closes its subscription scope. Pass the result as initial to both server rendering and client hydration. Empty sources yield NoData; failure causes become AsyncData failures.

Package version
1.0.0-beta.13
Category
variable

Import

import { prefetch } from "@typed/svelte";

Signatures

export declare const prefetch: <A, E = never, R = never>(source: Source<A, E, R>) => Effect.Effect<AsyncData.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