Skip to content

Commit a98c75e

Browse files
committed
flushing_sync -> is_flushing_sync
1 parent f686355 commit a98c75e

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let last_scheduled_effect = null;
6969

7070
let is_flushing = false;
7171

72-
let flushing_sync = false;
72+
let is_flushing_sync = false;
7373

7474
export class Batch {
7575
/**
@@ -411,7 +411,7 @@ export class Batch {
411411
const batch = (current_batch = new Batch());
412412
batches.add(current_batch);
413413

414-
if (!flushing_sync) {
414+
if (!is_flushing_sync) {
415415
Batch.enqueue(() => {
416416
if (current_batch !== batch) {
417417
// a flushSync happened in the meantime
@@ -448,8 +448,8 @@ export function flushSync(fn) {
448448
e.flush_sync_in_effect();
449449
}
450450

451-
var prev_flushing_sync = flushing_sync;
452-
flushing_sync = true;
451+
var prev_flushing_sync = is_flushing_sync;
452+
is_flushing_sync = true;
453453

454454
try {
455455
var result;
@@ -484,7 +484,7 @@ export function flushSync(fn) {
484484
batch.flush_effects();
485485
}
486486
} finally {
487-
flushing_sync = prev_flushing_sync;
487+
is_flushing_sync = prev_flushing_sync;
488488
}
489489
}
490490

0 commit comments

Comments
 (0)