Merge branch 'main' into async-another-try

async-another-try
Rich Harris 1 day ago committed by GitHub
commit e5e2d16f17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: flush anything pending before invoking flushSync callback function

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: read batch-local array on each-block commit

@ -1243,7 +1243,7 @@ export function flushSync(fn) {
var result;
if (fn) {
flushSync(); // drain queue via the lower while(true) part
flushSync(); // flush anything pending through the while loop below
result = fn();
}

Loading…
Cancel
Save