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 99033bd commit c45b60cCopy full SHA for c45b60c
packages/svelte/src/internal/client/runtime.js
@@ -834,8 +834,10 @@ export function flush_sync(fn) {
834
var result = fn?.();
835
836
flush_tasks();
837
- if (queued_root_effects.length > 0) {
838
- flush_sync();
+
+ while (queued_root_effects.length > 0) {
839
+ flush_queued_root_effects();
840
+ flush_tasks();
841
}
842
843
return result;
0 commit comments