From edb5774dad0fc4f1e4876a613be7eefd18c568cc Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 15 May 2025 09:32:42 -0400 Subject: [PATCH] Update documentation/docs/03-template-syntax/09-@attach.md --- documentation/docs/03-template-syntax/09-@attach.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/03-template-syntax/09-@attach.md b/documentation/docs/03-template-syntax/09-@attach.md index cd1483a4b6..9901541160 100644 --- a/documentation/docs/03-template-syntax/09-@attach.md +++ b/documentation/docs/03-template-syntax/09-@attach.md @@ -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.