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 350ec9f commit a4ccdfcCopy full SHA for a4ccdfc
packages/svelte/src/internal/client/reactivity/batch.js
@@ -626,7 +626,8 @@ function flush_queued_effects(effects) {
626
// TODO this feels incorrect! it gets the tests passing
627
old_values.clear();
628
629
- for (const e of eager_block_effects) {
+ // Update effects in reverse order to ensure outer guards are processed before their contents
630
+ for (const e of eager_block_effects.toReversed()) {
631
update_effect(e);
632
}
633
0 commit comments