tweak comment

pull/16623/head
Rich Harris 4 weeks ago
parent 66396f391e
commit 2048f5dae0

@ -619,8 +619,8 @@ function flush_queued_effects(effects) {
} }
} }
// if an effect is invalidated by a user effect, abort and re-schedule, lest we // if a state change in a user effect invalidates a _different_ effect,
// run effects that should be removed as a result of the state change // abort and reschedule in case that effect now needs to be destroyed
if (schedule_version > sv && (effect.f & USER_EFFECT) !== 0) { if (schedule_version > sv && (effect.f & USER_EFFECT) !== 0) {
break; break;
} }

Loading…
Cancel
Save