Describe the bug
Class fields of objects wrapped with $state() rune aren't reactive in Svelte 5.
For instance, replacing let node = new Node('root') with let node = $state(new Node('root')) breaks reactivity for fields in Node class.
Reproduction
Logs
System Info
Severity
blocking an upgrade
Describe the bug
Class fields of objects wrapped with $state() rune aren't reactive in Svelte 5.
For instance, replacing
let node = new Node('root')withlet node = $state(new Node('root'))breaks reactivity for fields in Node class.Reproduction
MIGRATELogs
System Info
Severity
blocking an upgrade