variable / @typed/astro/client

default

Creates Astro’s browser renderer for one island element. Replacement waits for the previous render’s interruption; astro:unmount ends its subscriptions. Setup failures reject hydration, while later failures are reported by typed:error on the island. Astro invokes this renderer entry.

Package version
1.0.0-beta.7
Category
Hydration and lifecycle
Since
1.0.0

Import

import clientRenderer from "@typed/astro/client";

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

Signatures

declare const _default: (element: HTMLElement) => (component: unknown, props: Record<string, unknown>, slots?: Record<string, string>, { client }?: {
    client: string;
}) => Promise<void>;
export default _default;

Source