this appears to be unnecessary

pull/16150/head
Rich Harris 3 months ago
parent 27fe22bf5c
commit 03485faa49

@ -599,15 +599,11 @@ function resume_children(effect, local) {
if ((effect.f & INERT) === 0) return; if ((effect.f & INERT) === 0) return;
effect.f ^= INERT; effect.f ^= INERT;
// Ensure the effect is marked as clean again so that any dirty child // If a dependency of this effect changed while it was paused,
// effects can schedule themselves for execution // schedule the effect to update. we don't use `check_dirtiness`
if ((effect.f & CLEAN) === 0) { // here because we don't want to eagerly recompute a derived like
effect.f ^= CLEAN; // `{#if foo}{foo.bar()}{/if}` if `foo` is now `undefined
} else { if ((effect.f & CLEAN) !== 0) {
// If a dependency of this effect changed while it was paused,
// schedule the effect to update. we don't use `check_dirtiness`
// here because we don't want to eagerly recompute a derived like
// `{#if foo}{foo.bar()}{/if}` if `foo` is now `undefined
set_signal_status(effect, DIRTY); set_signal_status(effect, DIRTY);
schedule_effect(effect); schedule_effect(effect);
} }

Loading…
Cancel
Save