From 3972524f94d7e18c2254ffb56ae5873d6a65dcf1 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Fri, 22 Nov 2024 22:13:59 +0100 Subject: [PATCH] Update documentation/docs/02-runes/02-$state.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- documentation/docs/02-runes/02-$state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/02-runes/02-$state.md b/documentation/docs/02-runes/02-$state.md index 4809258bd9..eab3c1f0af 100644 --- a/documentation/docs/02-runes/02-$state.md +++ b/documentation/docs/02-runes/02-$state.md @@ -274,7 +274,7 @@ logger(counter); // $effect logs 0 counter.increment(); // $effect logs 1 ``` -For the same reasons, you should not destructure reactive objects, because that means their value is read at that point in time, and not updated anymore from inside whatever created it. +For the same reasons, you should not destructure reactive objects — their value is read at that point in time, and not updated anymore from inside whatever created it. ```js // @errors: 7006