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
Not sure if this is a bug or intended. According to this breaking change, if the state caused an $effect to rerun, Svelte should provide the previous value of the state in the teardown function. This work for $state currently, but not for $derived, though it does work if $derived is reassigned.
Describe the bug
Not sure if this is a bug or intended. According to this breaking change, if the state caused an $effect to rerun, Svelte should provide the previous value of the state in the teardown function. This work for $state currently, but not for $derived, though it does work if $derived is reassigned.
Reproduction
https://svelte.dev/playground/untitled?version=5.33.18#H4sIAAAAAAAACnWPy2rEMAxFf8WIgcl0woSuCm4SmC_oqqumizyU1tRVjKVkOgT_e3HS92MldHSPZM9A9TOChlsSIxY7SKE3Fhn03QxydnEWAaTvyaNzB57QSmRNzfgXbwcSJGHQkHPrjZOyokosimJVqA1LLZhc7q4_6II79GbCLuELXkZUyQb7HltJkp0qSjVHVEk7EA8WD3Z4SLaPRjFrtU0Vr5ZU4lFGT-qb9ENrzvjbC7GEXUV59vlsyptRZCA1UGtN-1TM617e70N57DrFebYmyv-z8X9XobyZ0J-8kXj7q-VK1mrmkGfurV36FUAKgi8CWvyI4T4FqY09GepA97VlDK_x94v_xwEAAA==
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: