fix: improve unowned derived performance (#14724)

* fix: improve unowned derived performance

* fix: improve unowned derived performance

* changeset
pull/14728/head
Dominic Gannaway 9 months ago committed by GitHub
parent bbf38291fc
commit 699dc6e4f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: improve unowned derived performance

@ -230,8 +230,9 @@ export function check_dirtiness(reaction) {
}
}
// Unowned signals should never be marked as clean.
if (!is_unowned) {
// Unowned signals should never be marked as clean unless they
// are used within an active_effect without skip_reaction
if (!is_unowned || (active_effect !== null && !skip_reaction)) {
set_signal_status(reaction, CLEAN);
}
}

Loading…
Cancel
Save