We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf3829 commit 699dc6eCopy full SHA for 699dc6e
.changeset/many-worms-attend.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+fix: improve unowned derived performance
packages/svelte/src/internal/client/runtime.js
@@ -230,8 +230,9 @@ export function check_dirtiness(reaction) {
230
}
231
232
233
- // Unowned signals should never be marked as clean.
234
- if (!is_unowned) {
+ // Unowned signals should never be marked as clean unless they
+ // are used within an active_effect without skip_reaction
235
+ if (!is_unowned || (active_effect !== null && !skip_reaction)) {
236
set_signal_status(reaction, CLEAN);
237
238
0 commit comments