You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is an issue with the scheduling of sync effects. We should probably sort their execution so that effects from parent components are executed before effects from child components, and remove child component effects from the queue if the execution of a parent component's effect destroys the child component.
Describe the bug
Hard to explain beyond the title, but here goes:
data
state with athings
array in it:let data = $state({things: [...]})
{#if data} <ThingList things={data.things} /> {/if}
$inspect(things)
onthings
prop being passed to itdata
state in Parent becomes null, $inspect in the child throws in error.$inspect(things)
call in ThingList makes the error go away.I suspect it's something weird going on with references, but I don't really know what's going on under the hood so that's a complete guess.
Reproduction
https://svelte.dev/playground/9554421a0ca547089ee1e27e7e258845?version=5.25.12
code
Logs
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: