Skip to content

Commit b5b01ca

Browse files
committed
upd
1 parent fa28a77 commit b5b01ca

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

src/overview/whack_ds/good_bad.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,36 @@ final = (
4747
)
4848
```
4949

50-
<sup>Callback caching (`whack.ds.useCallback`) only occurs implicitly for Functions assigned to the whole attribute.</sup>
50+
<sup>Callback caching (`whack.ds.useCallback`) only occurs implicitly for Functions assigned to the whole attribute.</sup>
51+
52+
## :&#x28; Callbacks
53+
54+
```sx
55+
final = (
56+
<cset:Evaluator>
57+
<cset:finish>
58+
{function(){doIt()} /* BAD */}
59+
</cset:finish>
60+
</cset:Evaluator>
61+
)
62+
```
63+
64+
<sup>Callback caching (`whack.ds.useCallback`) only occurs implicitly for Functions assigned to the whole attribute when using a syntactic XML attribute.</sup>
65+
66+
## :&#x29; Callbacks
67+
68+
```sx
69+
final = (
70+
<cset:Evaluator
71+
finish&={doIt()} />
72+
) // GOOD
73+
```
74+
75+
## :&#x29; Callbacks
76+
77+
```sx
78+
final = (
79+
<cset:Evaluator
80+
finish={function(e){doIt()}} />
81+
) // GOOD
82+
```

0 commit comments

Comments
 (0)