Rich Harris 4 months ago committed by GitHub
parent cd11379711
commit edb5774dad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,7 +4,7 @@ title: {@attach ...}
Attachments are functions that run in an [effect]($effect) when an element is mounted to the DOM or when [state]($state) read inside the function updates.
Optionally, they can return a function that is called when the element is later removed from the DOM.
Optionally, they can return a function that is called before the attachment re-runs, or when the element is later removed from the DOM.
> [!NOTE]
> Attachments are available in Svelte 5.29 and newer.

Loading…
Cancel
Save