Skip to content

Commit 51f24a3

Browse files
committed
tweak
1 parent 86db0aa commit 51f24a3

File tree

1 file changed

+5
-9
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+5
-9
lines changed

packages/svelte/src/internal/client/reactivity/batch.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,15 @@ export class Batch {
283283
if (!skip && effect.fn !== null) {
284284
if (is_branch) {
285285
effect.f ^= CLEAN;
286-
} else if ((flags & EFFECT) !== 0) {
287-
if ((flags & CLEAN) === 0) {
286+
} else if ((flags & CLEAN) === 0) {
287+
if ((flags & EFFECT) !== 0) {
288288
this.#effects.push(effect);
289-
}
290-
} else if (async_mode_flag && (flags & RENDER_EFFECT) !== 0) {
291-
if ((flags & CLEAN) === 0) {
289+
} else if (async_mode_flag && (flags & RENDER_EFFECT) !== 0) {
292290
this.#render_effects.push(effect);
293-
}
294-
} else if (is_dirty(effect)) {
295-
if ((flags & ASYNC) !== 0) {
291+
} else if ((flags & ASYNC) !== 0) {
296292
var effects = effect.b?.pending ? this.#boundary_async_effects : this.#async_effects;
297293
effects.push(effect);
298-
} else {
294+
} else if (is_dirty(effect)) {
299295
if ((effect.f & BLOCK_EFFECT) !== 0) this.#block_effects.push(effect);
300296
update_effect(effect);
301297
}

0 commit comments

Comments
 (0)