Skip to content

Commit 9c0a31f

Browse files
committed
Add comment to prevent further regressions
1 parent 6eafe42 commit 9c0a31f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,9 @@ export function flushSync(fn) {
834834
}
835835

836836
while (true) {
837+
// is_flushing cannot be set to `true` before `flush_tasks` because it
838+
// causes the regression at #16076, this can only be observed
839+
// in browser and not in jsdom
837840
flush_tasks();
838841

839842
if (queued_root_effects.length === 0) {

0 commit comments

Comments
 (0)