Revert "fix: avoid extra work in mark_reactions (#12921)" (#12931)

This reverts commit 4ce23bf07e.
pull/12933/head
Dominic Gannaway 4 months ago committed by GitHub
parent 8aed27db97
commit 189113ab8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +0,0 @@
---
'svelte': patch
---
fix: avoid extra work in mark_reactions

@ -145,8 +145,8 @@ function mark_reactions(signal, status) {
var reaction = reactions[i]; var reaction = reactions[i];
var flags = reaction.f; var flags = reaction.f;
// If a reaction is already dirty, skip it (but always mark unowned deriveds) // Skip any effects that are already dirty
if ((flags & (CLEAN | UNOWNED)) === 0) continue; if ((flags & DIRTY) !== 0) continue;
// In legacy mode, skip the current effect to prevent infinite loops // In legacy mode, skip the current effect to prevent infinite loops
if (!runes && reaction === current_effect) continue; if (!runes && reaction === current_effect) continue;

Loading…
Cancel
Save