Skip to content

Commit f1f34f7

Browse files
committed
dedupe declaration
1 parent 457b849 commit f1f34f7

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,11 @@ function flush_effects() {
489489

490490
try {
491491
var flush_count = 0;
492-
var batch = /** @type {Batch} */ (current_batch);
493492
set_is_updating_effect(true);
494493

495494
while (queued_root_effects.length > 0) {
495+
var batch = /** @type {Batch} */ (current_batch);
496+
496497
if (flush_count++ > 1000) {
497498
if (DEV) {
498499
var updates = new Map();
@@ -519,7 +520,6 @@ function flush_effects() {
519520
infinite_loop_guard();
520521
}
521522

522-
batch = /** @type {Batch} */ (current_batch);
523523
batch.process(queued_root_effects);
524524
old_values.clear();
525525
}

0 commit comments

Comments
 (0)