Skip to content

Commit bba5314

Browse files
committed
restore batch_values after commit
1 parent c054cd4 commit bba5314

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ export class Batch {
343343
if (batches.size > 1) {
344344
this.#previous.clear();
345345

346-
let is_earlier = true;
346+
var previous_batch_values = batch_values;
347+
var is_earlier = true;
347348

348349
/** @type {EffectTarget} */
349350
var dummy_target = {
@@ -406,6 +407,7 @@ export class Batch {
406407
}
407408

408409
current_batch = null;
410+
batch_values = previous_batch_values;
409411
}
410412

411413
batches.delete(this);

0 commit comments

Comments
 (0)