From 8d0937a53427d6ecd50a5fdd41fbfbd6aff3168c Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:09:23 +0100 Subject: [PATCH] docs: fix compilation error (#14121) --- 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 16ab0e8e87..a3dbe04b00 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'); - ); + }); }); ```