Skip to content
HomePagesHomePages template kit

unmountIslands

Unmount every island hydrated under `root`.

Unmount every island hydrated under root. Synchronous, so the editor can call it immediately before replacing a section’s innerHTML.

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

function unmountIslands(root?: ParentNode): void
Name Type Required Description
root ParentNode optional