[]previous and next page

IslandStrategy

When an island is hydrated: load (as soon as the page is interactive), visible (it scrolls into view), idle (the browser is idle), interaction (the first pointer, key or focus on it), or media (a media query matches).

When an island is hydrated: load (as soon as the page is interactive), visible (it scrolls into view), idle (the browser is idle), interaction (the first pointer, key or focus on it), or media (a media query matches). only renders nothing on the server: the component is mounted in the browser alone, as load does.

Import#

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

Signature#

ts
type IslandStrategy = "load" | "visible" | "idle" | "interaction" | "media" | "only"