From c7e507423a69a2c46d4fc3cf112326c6beddbb5b Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Sat, 2 Nov 2024 19:40:19 +0100 Subject: [PATCH] docs: fix compilation error --- documentation/docs/06-runtime/03-lifecycle-hooks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); - ); + }); }); ```