Skip to content

Commit 2048f5d

Browse files
committed
tweak comment
1 parent 66396f3 commit 2048f5d

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/client/reactivity/batch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ function flush_queued_effects(effects) {
619619
}
620620
}
621621

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
622+
// if a state change in a user effect invalidates a _different_ effect,
623+
// abort and reschedule in case that effect now needs to be destroyed
624624
if (schedule_version > sv && (effect.f & USER_EFFECT) !== 0) {
625625
break;
626626
}

0 commit comments

Comments
 (0)