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/compiler/warnings.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -645,7 +645,7 @@ export function reactive_declaration_module_script_dependency(node) {
645
645
* @param {null | NodeLike} node
646
646
*/
647
647
exportfunctionstate_referenced_locally(node){
648
-
w(node,'state_referenced_locally',`State referenced in its own scope will never update. Did you mean to reference it inside a closure?\nhttps://svelte.dev/e/state_referenced_locally`);
648
+
w(node,'state_referenced_locally',`This state is not reactive. Did you mean to reference it inside a closure?\nhttps://svelte.dev/e/state_referenced_locally`);
649
649
}
650
650
651
651
/**
@@ -810,4 +810,4 @@ export function svelte_element_invalid_this(node) {
w(node,'svelte_self_deprecated',`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${name} from './${basename}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`);
0 commit comments