diff --git a/documentation/docs/06-runtime/03-lifecycle-hooks.md b/documentation/docs/06-runtime/03-lifecycle-hooks.md index 16ab0e8e87fa..a3dbe04b0029 100644 --- a/documentation/docs/06-runtime/03-lifecycle-hooks.md +++ b/documentation/docs/06-runtime/03-lifecycle-hooks.md @@ -71,9 +71,9 @@ While there's no "after update" hook, you can use `tick` to ensure that the UI i $effect.pre(() => { console.log('the component is about to update'); - tick().then( + tick().then(() => { console.log('the component just updated'); - ); + }); }); ```