[]previous and next page

HydrateIslandsOptions

Options of hydrateIslands.

Options of hydrateIslands.

Import#

ts
import type { HydrateIslandsOptions } from "@shadow-js/dusk/client";

Signature#

ts
interface HydrateIslandsOptions {
  /** The loader of each island id. */
  readonly registry: IslandRegistry;
  /** The part of the page to look in. Default: the document. */
  readonly root?: ParentNode;
  /** Receives a problem that does not stop the other islands (an unknown id, props that are not JSON, a failed load). */
  readonly onError?: (error: unknown) => void;
}

Members#

Name Type Description
registry readonly registry: IslandRegistry The loader of each island id.
root? readonly root?: ParentNode The part of the page to look in. Default: the document.
onError? readonly onError?: (error: unknown) => void Receives a problem that does not stop the other islands (an unknown id, props that are not JSON, a failed load).