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 6c2f0f9 commit 82e431fCopy full SHA for 82e431f
packages/svelte/src/internal/client/reactivity/batch.js
@@ -461,7 +461,7 @@ export function flushSync(fn) {
461
if (queued_root_effects.length === 0) {
462
current_batch?.flush();
463
464
- // TODO this feels wrong
+ // we need to check again, in case we just updated an `$effect.pending()`
465
466
// this would be reset in `flush_effects()` but since we are early returning here,
467
// we need to reset it here as well in case the first time there's 0 queued root effects
0 commit comments