pull/15844/head
Rich Harris 2 months ago
parent bfa9f04e49
commit 67ad3bcb0b

@ -603,14 +603,6 @@ export function get(signal) {
} }
} }
if (is_derived && !is_destroying_effect) {
derived = /** @type {Derived} */ (signal);
if (is_dirty(derived)) {
update_derived(derived);
}
}
if (DEV) { if (DEV) {
if (current_async_effect) { if (current_async_effect) {
var tracking = (current_async_effect.f & REACTION_IS_UPDATING) !== 0; var tracking = (current_async_effect.f & REACTION_IS_UPDATING) !== 0;
@ -679,6 +671,16 @@ export function get(signal) {
return value; return value;
} }
} else if (is_derived) {
derived = /** @type {Derived} */ (signal);
if (batch_deriveds?.has(derived)) {
return batch_deriveds.get(derived);
}
if (is_dirty(derived)) {
update_derived(derived);
}
} }
if ((signal.f & ERROR_VALUE) !== 0) { if ((signal.f & ERROR_VALUE) !== 0) {

Loading…
Cancel
Save