Skip to content
HomePagesHomePages template kit

ISLAND_CAPTURE_HOLDS_GLOBAL

The window property holding the page's OPEN capture holds, as a `Set<Promise<void>>`.

The window property holding the page’s OPEN capture holds, as a Set<Promise<void>>. An island that paints after mount takes a hold (the useCaptureReady hook) and the host’s readiness promise drains the set — window-level because an island bundle and the page’s runtime chunk are separate module graphs, so module state cannot cross between them.

Import from @homepages/template-kit or @homepages/template-kit/island-runtime.

const ISLAND_CAPTURE_HOLDS_GLOBAL: "__trCaptureHolds"