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: packages/svelte/src/internal/client/errors.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -343,12 +343,12 @@ export function state_unsafe_local_read() {
343
343
}
344
344
345
345
/**
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`
347
347
* @returns {never}
348
348
*/
349
349
exportfunctionstate_unsafe_mutation(){
350
350
if(DEV){
351
-
consterror=newError(`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
+
consterror=newError(`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\``);
0 commit comments