Skip to content

Commit 97408be

Browse files
Add note chatbot not working in current excersize (sveltejs#210)
* Add note chatbot not working in current excersize * Update content/tutorial/01-svelte/07-lifecycle/03-update/README.md --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 759e7d5 commit 97408be

File tree

1 file changed

+2
-0
lines changed
  • content/tutorial/01-svelte/07-lifecycle/03-update

1 file changed

+2
-0
lines changed

content/tutorial/01-svelte/07-lifecycle/03-update/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: beforeUpdate and afterUpdate
33
---
44

5+
> The Eliza Chatbot in this exercise doesn't currently work. For now, you can use the old tutorial instead: https://svelte.dev/tutorial/update
6+
57
The `beforeUpdate` function schedules work to happen immediately before the DOM is updated. `afterUpdate` is its counterpart, used for running code once the DOM is in sync with your data.
68

79
Together, they're useful for doing things imperatively that are difficult to achieve in a purely state-driven way, like updating the scroll position of an element.

0 commit comments

Comments
 (0)