Skip to content

Commit e776ee5

Browse files
chore: slightly better comment
1 parent 86d745b commit e776ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ export function flushSync(fn) {
689689

690690
if (queued_root_effects.length === 0) {
691691
// 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
692+
// we need to reset it here as well in case the first time there's 0 queued root effects
693693
is_flushing = false;
694694
last_scheduled_effect = null;
695695
if (DEV) {

0 commit comments

Comments
 (0)