Skip to content

Commit 398171b

Browse files
committed
fix
1 parent b0912ad commit 398171b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/03-template-syntax/[email protected]

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ This allows you to create _wrapper components_ that augment elements ([demo](/pl
133133
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`):
134134

135135
```js
136+
// @errors: 7006 2304 2552
136137
function foo(bar) {
137138
return (node) => {
138139
veryExpensiveSetupWork(node);
@@ -144,6 +145,7 @@ function foo(bar) {
144145
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:
145146

146147
```js
148+
// @errors: 7006 2304 2552
147149
function foo(+++getBar+++) {
148150
return (node) => {
149151
veryExpensiveSetupWork(node);

0 commit comments

Comments
 (0)