Skip to content

Commit b2c0b79

Browse files
committed
revert unneeded changes
1 parent 6d9801d commit b2c0b79

File tree

1 file changed

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

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ function mark_reactions(signal, status) {
300300
continue;
301301
}
302302

303-
if (status === DIRTY || (flags & DIRTY) === 0) {
304-
// don't make a DIRTY signal MAYBE_DIRTY
305-
set_signal_status(reaction, status);
306-
}
303+
set_signal_status(reaction, status);
307304

308-
if ((flags & DERIVED) !== 0) {
309-
mark_reactions(/** @type {Derived} */ (reaction), MAYBE_DIRTY);
310-
} else {
311-
schedule_effect(/** @type {Effect} */ (reaction));
305+
// If the signal a) was previously clean or b) is an unowned derived, then mark it
306+
if ((flags & (CLEAN | UNOWNED)) !== 0) {
307+
if ((flags & DERIVED) !== 0) {
308+
mark_reactions(/** @type {Derived} */ (reaction), MAYBE_DIRTY);
309+
} else {
310+
schedule_effect(/** @type {Effect} */ (reaction));
311+
}
312312
}
313313
}
314314
}

0 commit comments

Comments
 (0)