Skip to content

Commit 6c6647f

Browse files
committed
fix: improve unowned derived performance
1 parent fb03e1c commit 6c6647f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ export function check_dirtiness(reaction) {
231231
}
232232

233233
// Unowned signals should never be marked as clean unless they
234-
// are used within an active_effect
235-
if (!is_unowned || active_effect !== null) {
234+
// are used within an active_effect without skip_reaction
235+
if (!is_unowned || (active_effect !== null && !skip_reaction)) {
236236
set_signal_status(reaction, CLEAN);
237237
}
238238
}

0 commit comments

Comments
 (0)