Skip to content

Commit c74a6f7

Browse files
trueadmRich-Harris
andauthored
Update packages/svelte/src/internal/client/reactivity/sources.js
Co-authored-by: Rich Harris <[email protected]>
1 parent f7d835b commit c74a6f7

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-2
lines changed

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-
// Skip if they're already dirty or if they're maybe dirty and not unowned
149-
if ((flags & DIRTY) !== 0 || ((flags & MAYBE_DIRTY) !== 0 && (flags & UNOWNED) === 0)) continue;
148+
// If a reaction is already dirty, skip it (but always mark unowned deriveds)
149+
if ((flags & (CLEAN | UNOWNED)) === 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)