pull/16668/head
Rich Harris 2 weeks ago
parent e0c90fbc7d
commit a9912aa2c1

@ -76,8 +76,8 @@ let queued_root_effects = [];
let last_scheduled_effect = null; let last_scheduled_effect = null;
let is_flushing = false; let is_flushing = false;
let is_flushing_sync = false; let is_flushing_sync = false;
export class Batch { export class Batch {
/** /**
* The current values of any sources that are updated in this batch * The current values of any sources that are updated in this batch
@ -678,9 +678,7 @@ export function suspend() {
if (!pending) { if (!pending) {
batch.activate(); batch.activate();
batch.decrement(); batch.decrement();
} } else if (batch === current_batch) {
if (batch === current_batch) {
batch.deactivate(); batch.deactivate();
} }

Loading…
Cancel
Save