-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Describe the bug
According to Dominic "Classes are excluded from the warning as they're deemed "you know what you're doing."
While everything works fine with flat class fields (like strings) we do see the warning for class fields that hold an object.
Reproduction
Logs
"PersonEditor.svelte mutated a value owned by App.svelte. This is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead."
eval (playground:output:2748:39)
untrack (playground:output:1700:11)
console.<computed> [as trace] (playground:output:2748:16)
check_ownership (playground:output:603:12)
Object.set (playground:output:889:6)
eval (playground:output:2626:117)
HTMLInputElement.eval [as __on_r] (playground:output:2414:4)
System Info
System:
OS: macOS 14.2.1
CPU: (8) arm64 Apple M2
Memory: 90.53 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
npm: 10.2.3 - /usr/local/bin/npm
Browsers:
Chrome: 123.0.6312.105
Safari: 17.2.1
npmPackages:
svelte: 5.0.0-next.93 => 5.0.0-next.93
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels