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

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

@ -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);
if (!skip) {
if (!skip && effect.fn !== null) {
if ((flags & EFFECT_ASYNC) !== 0) {
if (check_dirtiness(effect)) {
async_effects.push(effect);

Loading…
Cancel
Save