chore: improve runtime performance of derived signals (#13626)

pull/13627/head
Dominic Gannaway 3 weeks ago committed by GitHub
parent 99c744adbe
commit 7429854383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
chore: improve runtime performance of derived signals

@ -801,7 +801,7 @@ export function get(signal) {
set_signal_status(active_effect, DIRTY);
schedule_effect(active_effect);
}
} else if (is_derived) {
} else if (is_derived && /** @type {Derived} */ (signal).deps === null) {
var derived = /** @type {Derived} */ (signal);
var parent = derived.parent;

Loading…
Cancel
Save