File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ let last_scheduled_effect = null;
69
69
70
70
let is_flushing = false ;
71
71
72
- let flushing_sync = false ;
72
+ let is_flushing_sync = false ;
73
73
74
74
export class Batch {
75
75
/**
@@ -411,7 +411,7 @@ export class Batch {
411
411
const batch = ( current_batch = new Batch ( ) ) ;
412
412
batches . add ( current_batch ) ;
413
413
414
- if ( ! flushing_sync ) {
414
+ if ( ! is_flushing_sync ) {
415
415
Batch . enqueue ( ( ) => {
416
416
if ( current_batch !== batch ) {
417
417
// a flushSync happened in the meantime
@@ -448,8 +448,8 @@ export function flushSync(fn) {
448
448
e . flush_sync_in_effect ( ) ;
449
449
}
450
450
451
- var prev_flushing_sync = flushing_sync ;
452
- flushing_sync = true ;
451
+ var prev_flushing_sync = is_flushing_sync ;
452
+ is_flushing_sync = true ;
453
453
454
454
try {
455
455
var result ;
@@ -484,7 +484,7 @@ export function flushSync(fn) {
484
484
batch . flush_effects ( ) ;
485
485
}
486
486
} finally {
487
- flushing_sync = prev_flushing_sync ;
487
+ is_flushing_sync = prev_flushing_sync ;
488
488
}
489
489
}
490
490
You can’t perform that action at this time.
0 commit comments