Skip to content

Commit e4c301f

Browse files
committed
fix: remove reactive_declaration_non_reactive_property warning
1 parent 4ec9986 commit e4c301f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.changeset/happy-carpets-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: remove `reactive_declaration_non_reactive_property` warning

packages/svelte/src/compiler/warnings.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export const codes = [
102102
"perf_avoid_nested_class",
103103
"reactive_declaration_invalid_placement",
104104
"reactive_declaration_module_script_dependency",
105-
"reactive_declaration_non_reactive_property",
106105
"state_referenced_locally",
107106
"store_rune_conflict",
108107
"css_unused_selector",
@@ -641,14 +640,6 @@ export function reactive_declaration_module_script_dependency(node) {
641640
w(node, "reactive_declaration_module_script_dependency", "Reassignments of module-level declarations will not cause reactive statements to update");
642641
}
643642

644-
/**
645-
* Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update
646-
* @param {null | NodeLike} node
647-
*/
648-
export function reactive_declaration_non_reactive_property(node) {
649-
w(node, "reactive_declaration_non_reactive_property", "Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update");
650-
}
651-
652643
/**
653644
* State referenced in its own scope will never update. Did you mean to reference it inside a closure?
654645
* @param {null | NodeLike} node

0 commit comments

Comments
 (0)