Skip to content

Commit 35b623e

Browse files
Sync svelte docs (#771)
sync svelte docs Co-authored-by: Rich-Harris <[email protected]>
1 parent 974d8c2 commit 35b623e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/svelte.dev/content/docs/svelte/06-runtime/03-lifecycle-hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ While there's no "after update" hook, you can use `tick` to ensure that the UI i
8484
8585
$effect.pre(() => {
8686
console.log('the component is about to update');
87-
tick().then(
87+
tick().then(() => {
8888
console.log('the component just updated');
89-
);
89+
});
9090
});
9191
</script>
9292
```

0 commit comments

Comments
 (0)