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 66396f3 commit 2048f5dCopy full SHA for 2048f5d
packages/svelte/src/internal/client/reactivity/batch.js
@@ -619,8 +619,8 @@ function flush_queued_effects(effects) {
619
}
620
621
622
- // if an effect is invalidated by a user effect, abort and re-schedule, lest we
623
- // run effects that should be removed as a result of the state change
+ // if a state change in a user effect invalidates a _different_ effect,
+ // abort and reschedule in case that effect now needs to be destroyed
624
if (schedule_version > sv && (effect.f & USER_EFFECT) !== 0) {
625
break;
626
0 commit comments