Update documentation/docs/02-runes/02-$state.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
reactivity-boundary-docs
Simon H 1 month ago committed by GitHub
parent ff28761ff3
commit 3972524f94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save