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
According to sveltejs/svelte#1181, only observers of the former form will be destroyed if the component is destroyed, yet the docs tell people to use the latter form in this section, and don't document the former anywhere. This could direct developers to shoot themselves in the foot and write memory-leaking apps.
The text was updated successfully, but these errors were encountered:
Thanks — I went the other way, documenting that the listener should be removed, as listening for $foo has caveats (the component will only receive those changes if $foo is referenced in the template or in a computed property)
According to sveltejs/svelte#1181, only observers of the former form will be destroyed if the component is destroyed, yet the docs tell people to use the latter form in this section, and don't document the former anywhere. This could direct developers to shoot themselves in the foot and write memory-leaking apps.
The text was updated successfully, but these errors were encountered: