Closed cdcarson closed 1 week ago
Notably, this seems to occur only when binding arrays (and possibly other special things,) but not pojos.I tried, but failed, to figure out the difference in my repro.
I think I figured this out. It's not an issue with the type of bound value, but with the fact that my LuckyNumbersControl.svelte updates the bound value with a function....
...which the compiler (?) doesn't pick up. So the component isn't added to the "owners" of the state. Contrast this with my NameControl.svelte...
...where the html inputs are bound to formData
, thus making the ownership "visible".
This appears to be fixed by #11490, so I'll close it.
Describe the bug
An irrelevant (as far as the state in question goes) modal wrapper results in an
ownership_invalid_binding
warning:Notably, this seems to occur only when binding arrays (and possibly other special things,) but not pojos.see comment I tried, but failed, to figure out the difference in my repro.Reproduction
Repro here. I made it as simple as possible.
Logs
System Info
Severity
annoyance