mirror of https://github.com/sveltejs/svelte
fix: more robust re-subscribe detection for `fromStore` (#13995)
Only count down after timeout, else we would reach 0 before our own render effect reruns, but reach 1 again when the tick callback of the prior teardown runs. That would mean we re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up.pull/14032/head
parent
cbc2ca36ce
commit
2e9dab6a21
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: more robust re-subscribe detection for `fromStore`
|
Loading…
Reference in new issue