0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 00:22:05 +01:00
svelte/.changeset/weak-frogs-bow.md
Simon H 4b59ef3c41
fix: widen ownership when sub state is assigned to new state (#11217)
Ownership was not widened when assigning a sub state to a different top level state. The set of owners for the state was zero because the owner was on the original parent, but that one was reset to null because it's now the top level of a different state. That meant that there was no owner but also no parent to check for the owner, which is an invalid combination resulting in a nullpointer (and also potentially false positive warnings in other situations).

fixes #11204
2024-04-18 10:00:39 +02:00

6 lines
86 B
Markdown

---
"svelte": patch
---
fix: widen ownership when sub state is assigned to new state