improve comment

fix-memory-leak-
Dominic Gannaway 1 year ago
parent 1c6199fe48
commit 6f8e23d497

@ -439,9 +439,9 @@ function remove_reaction(signal, dependency) {
} }
} }
} }
debugger; // If the derived has no reactions, then we can disconnect it from the graph,
// allowing it to either reconnect in the future, or be GC'd by the VM.
if (reactions_length === 0 && (dependency.f & DERIVED) !== 0) { if (reactions_length === 0 && (dependency.f & DERIVED) !== 0) {
// If the signal is unowned then we need to make sure to change it to maybe dirty.
set_signal_status(dependency, MAYBE_DIRTY); set_signal_status(dependency, MAYBE_DIRTY);
remove_reactions(/** @type {import('#client').Derived} **/ (dependency), 0); remove_reactions(/** @type {import('#client').Derived} **/ (dependency), 0);
} }

Loading…
Cancel
Save