Skip to content

Commit 189113a

Browse files
authored
Revert "fix: avoid extra work in mark_reactions (#12921)" (#12931)
This reverts commit 4ce23bf.
1 parent 8aed27d commit 189113a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.changeset/flat-moose-arrive.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/svelte/src/internal/client/reactivity/sources.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ function mark_reactions(signal, status) {
145145
var reaction = reactions[i];
146146
var flags = reaction.f;
147147

148-
// If a reaction is already dirty, skip it (but always mark unowned deriveds)
149-
if ((flags & (CLEAN | UNOWNED)) === 0) continue;
148+
// Skip any effects that are already dirty
149+
if ((flags & DIRTY) !== 0) continue;
150150

151151
// In legacy mode, skip the current effect to prevent infinite loops
152152
if (!runes && reaction === current_effect) continue;

0 commit comments

Comments
 (0)