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;