Skip to content

Commit a9912aa

Browse files
committed
tweak
1 parent e0c90fb commit a9912aa

File tree

1 file changed

+2
-4
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ let queued_root_effects = [];
7676
let last_scheduled_effect = null;
7777

7878
let is_flushing = false;
79-
8079
let is_flushing_sync = false;
80+
8181
export class Batch {
8282
/**
8383
* The current values of any sources that are updated in this batch
@@ -678,9 +678,7 @@ export function suspend() {
678678
if (!pending) {
679679
batch.activate();
680680
batch.decrement();
681-
}
682-
683-
if (batch === current_batch) {
681+
} else if (batch === current_batch) {
684682
batch.deactivate();
685683
}
686684

0 commit comments

Comments
 (0)