Skip to content

Commit 82e5754

Browse files
authored
Update README.md (sveltejs#239)
1 parent 40f7923 commit 82e5754

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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-
75
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.
86

97
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)