pull/16487/head
Rich Harris 2 months ago
parent 86db0aa323
commit 51f24a333c

@ -283,19 +283,15 @@ export class Batch {
if (!skip && effect.fn !== null) { if (!skip && effect.fn !== null) {
if (is_branch) { if (is_branch) {
effect.f ^= CLEAN; effect.f ^= CLEAN;
} else if ((flags & EFFECT) !== 0) { } else if ((flags & CLEAN) === 0) {
if ((flags & CLEAN) === 0) { if ((flags & EFFECT) !== 0) {
this.#effects.push(effect); this.#effects.push(effect);
} } else if (async_mode_flag && (flags & RENDER_EFFECT) !== 0) {
} else if (async_mode_flag && (flags & RENDER_EFFECT) !== 0) {
if ((flags & CLEAN) === 0) {
this.#render_effects.push(effect); this.#render_effects.push(effect);
} } else if ((flags & ASYNC) !== 0) {
} else if (is_dirty(effect)) {
if ((flags & ASYNC) !== 0) {
var effects = effect.b?.pending ? this.#boundary_async_effects : this.#async_effects; var effects = effect.b?.pending ? this.#boundary_async_effects : this.#async_effects;
effects.push(effect); effects.push(effect);
} else { } else if (is_dirty(effect)) {
if ((effect.f & BLOCK_EFFECT) !== 0) this.#block_effects.push(effect); if ((effect.f & BLOCK_EFFECT) !== 0) this.#block_effects.push(effect);
update_effect(effect); update_effect(effect);
} }

Loading…
Cancel
Save