Skip to content

Commit 908f0b1

Browse files
committed
update error message
1 parent c768825 commit 908f0b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

documentation/docs/98-reference/.generated/client-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ Reading state that was created inside the same derived is forbidden. Consider us
125125
### state_unsafe_mutation
126126

127127
```
128-
Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state`
128+
Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
129129
```

packages/svelte/messages/client-errors/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@
8282
8383
## state_unsafe_mutation
8484

85-
> Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state`
85+
> Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`

packages/svelte/src/internal/client/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ export function state_unsafe_local_read() {
343343
}
344344

345345
/**
346-
* Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state`
346+
* Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
347347
* @returns {never}
348348
*/
349349
export function state_unsafe_mutation() {
350350
if (DEV) {
351-
const error = new Error(`state_unsafe_mutation\nUpdating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without \`$state\``);
351+
const error = new Error(`state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without \`$state\``);
352352

353353
error.name = 'Svelte error';
354354
throw error;

0 commit comments

Comments
 (0)