Add comment to prevent further regressions

pull/16077/head
raythurnvoid 4 months ago
parent 6eafe423b0
commit 9c0a31feeb

@ -834,6 +834,9 @@ export function flushSync(fn) {
} }
while (true) { while (true) {
// is_flushing cannot be set to `true` before `flush_tasks` because it
// causes the regression at #16076, this can only be observed
// in browser and not in jsdom
flush_tasks(); flush_tasks();
if (queued_root_effects.length === 0) { if (queued_root_effects.length === 0) {

Loading…
Cancel
Save