hydrate()
Hydrate Dathra islands under the provided root. Defaults to document.
ts
type HydrationRoot = Parameters<typeof hydrateIslands>[0];
declare function hydrate(root?: HydrationRoot): ReturnType<typeof hydrateIslands>;Returns:The return value of @dathra/runtime/hydration hydrateIslands().
Example
ts
import { hydrate } from "@dathra/core/hydration";
void import("./AppRoot").then(() => {
queueMicrotask(() => hydrate(document));
});