|
|
|
@ -370,7 +370,7 @@ function remove_reaction(signal, dependency) {
|
|
|
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
|
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
|
|
(new_deps === null || !new_deps.includes(dependency))
|
|
|
|
(new_deps === null || !new_deps.includes(dependency))
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
const derived = /** @type {Derived} */ (dependency);
|
|
|
|
var derived = /** @type {Derived} */ (dependency);
|
|
|
|
|
|
|
|
|
|
|
|
// If we are working with a derived that is owned by an effect, then mark it as being
|
|
|
|
// If we are working with a derived that is owned by an effect, then mark it as being
|
|
|
|
// disconnected and remove the mark flag, as it cannot be reliably removed otherwise
|
|
|
|
// disconnected and remove the mark flag, as it cannot be reliably removed otherwise
|
|
|
|
|