Skip to content

Commit

Permalink
Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
Rich-Harris and benmccann authored Dec 27, 2023
1 parent 2e2f4fe commit 34581f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ In non-runes mode, a `let` declaration is treated as reactive state if it is upd

## `$state.frozen`

State declared with `$state.frozen` cannot be mutated; it can only be _reassigned_. In other words, rather than assigning to a property of an object, or using an array method like `push`, replace the object or array altogether:
State declared with `$state.frozen` cannot be mutated; it can only be _reassigned_. In other words, rather than assigning to a property of an object, or using an array method like `push`, replace the object or array altogether if you'd like to update it:

```diff
<script>
Expand Down

0 comments on commit 34581f6

Please sign in to comment.