Skip to content

Commit 931738e

Browse files
authored
[docs] mention that afterUpdate runs after onMount
Closes #4273
1 parent ddde34a commit 931738e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/content/docs/03-run-time.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ afterUpdate(callback: () => void)
8484

8585
Schedules a callback to run immediately after the component has been updated.
8686

87+
> The first time the callback runs will be after the initial `onMount`
88+
8789
```sv
8890
<script>
8991
import { afterUpdate } from 'svelte';

0 commit comments

Comments
 (0)