variable / @typed/template

rootIdentity

Allocate an island identity per execution and restore it through native hydration. Requires the caller’s Scope and RandomValues service; no entropy provider is installed here.

Package version
1.0.0-beta.13
Category
variable

Import

import { rootIdentity } from "@typed/template";

Signatures

export declare const rootIdentity: (id?: string | undefined) => Effect.Effect<{
    ref: RefSubject.HydrationRef<never, never>;
    id: Effect.Effect<string, never, never>;
}, never, import("effect/Scope").Scope | import("@typed/id/RandomValues").RandomValues>;

Other public imports

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

Source