From c9346ab3913375659e9c859bcb239d0cc81919a4 Mon Sep 17 00:00:00 2001 From: raythurnvoid <53383860+raythurnvoid@users.noreply.github.com> Date: Wed, 4 Jun 2025 01:17:12 +0100 Subject: [PATCH] Revert "chore: avoid microtasks when flushing sync (alternative) (#15895) * chore: avoid microtasks when flushing sync * chore: avoid microtasks when flushing sync * chore: avoid microtasks when flushing sync * tweak * WIP * another * more * tweak * fix * fix * belt and braces * Revert "belt and braces" This reverts commit f8de1cf47ade629347ae7087cbb7e5f5099d0758. --------- Co-authored-by: Dominic Gannaway " This reverts commit b6164128b3ea823876fc9d14e8251befac6ff7bd. --- packages/svelte/src/internal/client/runtime.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/svelte/src/internal/client/runtime.js b/packages/svelte/src/internal/client/runtime.js index d790c0ad14..c9c273b6fa 100644 --- a/packages/svelte/src/internal/client/runtime.js +++ b/packages/svelte/src/internal/client/runtime.js @@ -823,8 +823,6 @@ export function flushSync(fn) { if (fn) { is_flushing = true; flush_queued_root_effects(); - - is_flushing = true; result = fn(); }