From 92642f0150557f43552a23cdcf0bfd38313bb68a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 2 Apr 2026 22:44:33 -0400 Subject: [PATCH] WIP --- packages/svelte/src/internal/client/reactivity/batch.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/svelte/src/internal/client/reactivity/batch.js b/packages/svelte/src/internal/client/reactivity/batch.js index 87a8057e65..37ccb077cf 100644 --- a/packages/svelte/src/internal/client/reactivity/batch.js +++ b/packages/svelte/src/internal/client/reactivity/batch.js @@ -74,7 +74,7 @@ export let previous_batch = null; * signals in favour of their values within the batch * @type {Map | null} */ -export let batch_values = null; +let batch_values = null; /** @type {Effect | null} */ let last_scheduled_effect = null; @@ -123,7 +123,10 @@ export class Batch { previous = new Map(); /** - * The combination of this batch's `current` and other batches' `previous` values + * The combination of this batch's `current` and other batches' `previous` values, + * When time travelling (i.e. working in one batch, while other batches + * still have ongoing work), we ignore the real values of affected + * signals in favour of their values within the batch * @type {Map | null} */ values = null;