We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b93a1 commit 4757b1bCopy full SHA for 4757b1b
packages/svelte/src/reactivity/create-subscriber.js
@@ -70,7 +70,7 @@ export function createSubscriber(start) {
70
71
return () => {
72
queueMicrotask(() => {
73
- // Only count down after timeout, else we would reach 0 before our own render effect reruns,
+ // Only count down after a microtask, else we would reach 0 before our own render effect reruns,
74
// but reach 1 again when the tick callback of the prior teardown runs. That would mean we
75
// re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up.
76
subscribers -= 1;
0 commit comments