Skip to content

Commit

Permalink
Update documentation/docs/02-runes/02-$state.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
dummdidumm and benmccann authored Nov 22, 2024
1 parent ff28761 commit 3972524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/02-runes/02-$state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3972524

Please sign in to comment.