From 398171b2eb0fa03281f0fe28ac694c5e84e1d78f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 19 May 2025 16:28:35 -0400 Subject: [PATCH] fix --- documentation/docs/03-template-syntax/09-@attach.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/docs/03-template-syntax/09-@attach.md b/documentation/docs/03-template-syntax/09-@attach.md index 2a856d45ce..3644cbc8e8 100644 --- a/documentation/docs/03-template-syntax/09-@attach.md +++ b/documentation/docs/03-template-syntax/09-@attach.md @@ -133,6 +133,7 @@ This allows you to create _wrapper components_ that augment elements ([demo](/pl Attachments, unlike [actions](use), are fully reactive: `{@attach foo(bar)}` will re-run on changes to `foo` _or_ `bar` (or any state read inside `foo`): ```js +// @errors: 7006 2304 2552 function foo(bar) { return (node) => { veryExpensiveSetupWork(node); @@ -144,6 +145,7 @@ function foo(bar) { In the rare case that this is a problem (for example, if `foo` does expensive and unavoidable setup work) consider passing the data inside a function and reading it in a child effect: ```js +// @errors: 7006 2304 2552 function foo(+++getBar+++) { return (node) => { veryExpensiveSetupWork(node);