From bc1a4cad9656b0fe3dc155c7db1df8e0e0801165 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 8 Jun 2025 11:10:18 -0400 Subject: [PATCH] oops --- packages/svelte/src/internal/client/runtime.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/svelte/src/internal/client/runtime.js b/packages/svelte/src/internal/client/runtime.js index 3a38573aa0..f051d16cb1 100644 --- a/packages/svelte/src/internal/client/runtime.js +++ b/packages/svelte/src/internal/client/runtime.js @@ -570,7 +570,6 @@ export function flush_queued_root_effects() { old_values.clear(); } } finally { - is_flushing = false; is_updating_effect = was_updating_effect; last_scheduled_effect = null; @@ -712,10 +711,8 @@ export function flushSync(fn) { const batch = Batch.ensure(); if (fn) { - is_flushing = true; flush_queued_root_effects(); - is_flushing = true; result = fn(); } @@ -730,7 +727,6 @@ export function flushSync(fn) { return /** @type {T} */ (result); } - is_flushing = true; flush_queued_root_effects(); } }