pull/12069/head
Rich Harris 5 months ago
parent c9482c733b
commit 51e3b9668a

@ -886,12 +886,8 @@ export function mark_reactions(signal, force_schedule) {
if ((flags & CLEAN) !== 0 || (maybe_dirty && unowned)) { if ((flags & CLEAN) !== 0 || (maybe_dirty && unowned)) {
if ((reaction.f & DERIVED) !== 0) { if ((reaction.f & DERIVED) !== 0) {
// Push the derived reaction's reactions onto the stack with MAYBE_DIRTY status
var children = /** @type {import('#client').Derived} */ (reaction).reactions; var children = /** @type {import('#client').Derived} */ (reaction).reactions;
if (children !== null) stack.push(...children);
if (children !== null) {
stack.push(...children);
}
} else { } else {
schedule_effect(/** @type {import('#client').Effect} */ (reaction)); schedule_effect(/** @type {import('#client').Effect} */ (reaction));
} }

Loading…
Cancel
Save