You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/98-reference/.generated/client-errors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ Cannot set prototype of `$state` object
131
131
### state_unsafe_mutation
132
132
133
133
```
134
-
Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
134
+
Updating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
135
135
```
136
136
137
137
This error occurs when state is updated while evaluating a `$derived`. You might encounter it while trying to 'derive' two pieces of state in one go:
Copy file name to clipboardExpand all lines: packages/svelte/messages/client-errors/errors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ See the [migration guide](/docs/svelte/v5-migration-guide#Components-are-no-long
86
86
87
87
## state_unsafe_mutation
88
88
89
-
> Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
89
+
> Updating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
90
90
91
91
This error occurs when state is updated while evaluating a `$derived`. You might encounter it while trying to 'derive' two pieces of state in one go:
0 commit comments