Skip to content

Commit bbd42e2

Browse files
committed
tweak
1 parent 4567dac commit bbd42e2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

documentation/docs/03-template-syntax/19-await-expressions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ When an `await` expression depends on a particular piece of state, changes to th
6262
<p>{a} + {b} = {await add(a, b)}</p>
6363
```
6464

65-
...if you increment `a`, the contents of the `<p>` will _not_ immediately update to read `2 + 2 = 3` — instead, the text will update when `add(a, b)` resolves.
65+
...if you increment `a`, the contents of the `<p>` will _not_ immediately update to read this —
66+
67+
```html
68+
<p>2 + 2 = 3</p>
69+
```
70+
71+
— instead, the text will update to `2 + 2 = 4` when `add(a, b)` resolves.
6672

6773
Updates can overlap — a fast update will be reflected in the UI while an earlier slow update is still ongoing.
6874

0 commit comments

Comments
 (0)