diff --git a/packages/svelte/src/internal/client/reactivity/batch.js b/packages/svelte/src/internal/client/reactivity/batch.js index 1951077bff..ccda0dcc1d 100644 --- a/packages/svelte/src/internal/client/reactivity/batch.js +++ b/packages/svelte/src/internal/client/reactivity/batch.js @@ -47,9 +47,10 @@ export class Batch { var current_values = new Map(); - // TODO this shouldn't be necessary, but tests fail otherwise, - // presumably because we need a try-finally somewhere for (const [source, current] of this.current) { + // TODO this shouldn't be necessary, but tests fail otherwise, + // presumably because we need a try-finally somewhere, and the + // source wasn't correctly reverted after the previous batch source.v = current; }