pull/16197/head
Rich Harris 5 months ago
parent 21e4c44031
commit 1c313630d2

@ -60,7 +60,12 @@ export class Batch {
source.v = current;
}
for (const e of this.combined_effects) {
for (const e of this.render_effects) {
set_signal_status(e, DIRTY);
schedule_effect(e);
}
for (const e of this.effects) {
set_signal_status(e, DIRTY);
schedule_effect(e);
}

@ -705,9 +705,15 @@ function flush_queued_root_effects() {
}
if (batch.async_effects.length === 0 && batch.settled()) {
var render_effects = batch.render_effects;
var effects = batch.effects;
batch.render_effects = [];
batch.effects = [];
batch.commit();
flush_queued_effects(batch.render_effects);
flush_queued_effects(batch.effects);
flush_queued_effects(render_effects);
flush_queued_effects(effects);
} else {
// store the effects on the batch so that they run next time,
// even if they don't get re-dirtied

Loading…
Cancel
Save