From b6f42184f2736147907a19b442a0ddd169e79600 Mon Sep 17 00:00:00 2001 From: Good Dev Student <133277280+good-dev-student@users.noreply.github.com> Date: Thu, 2 Jan 2025 02:43:12 -0800 Subject: [PATCH] Update 02-$state.md --- documentation/docs/02-runes/02-$state.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/documentation/docs/02-runes/02-$state.md b/documentation/docs/02-runes/02-$state.md index 77140dc6903d..ce8e0dbc6044 100644 --- a/documentation/docs/02-runes/02-$state.md +++ b/documentation/docs/02-runes/02-$state.md @@ -140,9 +140,15 @@ let person = $state.raw({ age: 49 }); -// this will have no effect +// this will have no effect EDIT this line incorrect actualy here the console .log person.age += 1; +we see the age is 50 !!! + +![image](https://github.com/user-attachments/assets/e5ac841f-747e-468b-aabd-dd0680af4605) + + + // this will work, because we're creating a new person person = { name: 'Heraclitus',