hydrateIslands
Starts the islands of the page.
Starts the islands of the page. Each island mounts when its strategy fires: at once, when visible, when the browser is idle, on its first interaction, or when its media query matches. An island is mounted once. Nothing is loaded for an island that never fires.
Import#
ts
import { hydrateIslands } from "@shadow-js/dusk/client";
Signature#
ts
function hydrateIslands(options: HydrateIslandsOptions): IslandsHandle
Parameters#
| Name | Description |
|---|---|
options |
The registry, the part of the page and the error sink. |
Returns#
A handle with the count of mounted islands and dispose.
Examples#
ts
hydrateIslands({ registry: { chart: () => import("./Chart") } });