You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: content/tutorial/01-svelte/07-lifecycle/03-update/README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
title: beforeUpdate and afterUpdate
3
3
---
4
4
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
+
5
7
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.
6
8
7
9
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