Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Feb 6, 2025
1 parent 091783c commit fec7668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export function check_dirtiness(reaction) {
dependency = dependencies[i];

// We always re-add all reactions (even duplicates) if the derived was
// previously disconnected
// previously disconnected, however we don't if it was unowned as we
// de-duplicate dependencies in that case
if (is_disconnected || !dependency?.reactions?.includes(reaction)) {
(dependency.reactions ??= []).push(reaction);
}
Expand Down

0 comments on commit fec7668

Please # to comment.