We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d745b commit e776ee5Copy full SHA for e776ee5
packages/svelte/src/internal/client/runtime.js
@@ -689,7 +689,7 @@ export function flushSync(fn) {
689
690
if (queued_root_effects.length === 0) {
691
// this would be reset in `flush_queued_root_effects` but since we are early returning here,
692
- // we need to reset it here as well
+ // we need to reset it here as well in case the first time there's 0 queued root effects
693
is_flushing = false;
694
last_scheduled_effect = null;
695
if (DEV) {
0 commit comments