pull/16197/head
Rich Harris 7 months ago
parent c0ff1d05fb
commit 0f5b3cd89b

@ -52,11 +52,9 @@ export class Batch {
} }
for (const e of this.effects) { for (const e of this.effects) {
if (e.fn) {
set_signal_status(e, DIRTY); set_signal_status(e, DIRTY);
schedule_effect(e); schedule_effect(e);
} }
}
for (const batch of batches) { for (const batch of batches) {
if (batch === this) continue; if (batch === this) continue;

@ -852,7 +852,7 @@ function process_effects(root, async_effects, render_effects, effects) {
var skip = is_skippable_branch || (flags & INERT) !== 0 || batch.skipped_effects.has(effect); var skip = is_skippable_branch || (flags & INERT) !== 0 || batch.skipped_effects.has(effect);
if (!skip) { if (!skip && effect.fn !== null) {
if ((flags & EFFECT_ASYNC) !== 0) { if ((flags & EFFECT_ASYNC) !== 0) {
if (check_dirtiness(effect)) { if (check_dirtiness(effect)) {
async_effects.push(effect); async_effects.push(effect);

Loading…
Cancel
Save