revert unneeded changes

pull/15844/head
Rich Harris 2 months ago
parent 6d9801d16f
commit b2c0b7986f

@ -300,11 +300,10 @@ function mark_reactions(signal, status) {
continue; continue;
} }
if (status === DIRTY || (flags & DIRTY) === 0) {
// don't make a DIRTY signal MAYBE_DIRTY
set_signal_status(reaction, status); set_signal_status(reaction, status);
}
// If the signal a) was previously clean or b) is an unowned derived, then mark it
if ((flags & (CLEAN | UNOWNED)) !== 0) {
if ((flags & DERIVED) !== 0) { if ((flags & DERIVED) !== 0) {
mark_reactions(/** @type {Derived} */ (reaction), MAYBE_DIRTY); mark_reactions(/** @type {Derived} */ (reaction), MAYBE_DIRTY);
} else { } else {
@ -312,3 +311,4 @@ function mark_reactions(signal, status) {
} }
} }
} }
}

Loading…
Cancel
Save