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.
Signature
Section titled “Signature”function unmountIslands(root?: ParentNode): voidParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
root |
ParentNode |
optional |