Skip to content

Commit 010045f

Browse files
authored
Update warnings.js
1 parent 73fa9d3 commit 010045f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/compiler/warnings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ export function reactive_declaration_module_script_dependency(node) {
645645
* @param {null | NodeLike} node
646646
*/
647647
export function state_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`);
649649
}
650650

651651
/**
@@ -810,4 +810,4 @@ export function svelte_element_invalid_this(node) {
810810
*/
811811
export function svelte_self_deprecated(node, name, basename) {
812812
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`);
813-
}
813+
}

0 commit comments

Comments
 (0)