Skip to content

Commit 8d0937a

Browse files
docs: fix compilation error (#14121)
1 parent 304d88e commit 8d0937a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/docs/06-runtime/03-lifecycle-hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ While there's no "after update" hook, you can use `tick` to ensure that the UI i
7171
7272
$effect.pre(() => {
7373
console.log('the component is about to update');
74-
tick().then(
74+
tick().then(() => {
7575
console.log('the component just updated');
76-
);
76+
});
7777
});
7878
</script>
7979
```

0 commit comments

Comments
 (0)