Skip to content

Commit 026a1f2

Browse files
committed
tidy up
1 parent 9da4927 commit 026a1f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,9 @@ export function update_reaction(reaction) {
399399
new_deps = /** @type {null | Value[]} */ (null);
400400
skipped_deps = 0;
401401
untracked_writes = null;
402-
active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
403402
skip_reaction =
404-
(flags & UNOWNED) !== 0 &&
405-
(!is_updating_effect || previous_reaction === null || previous_untracking);
403+
(flags & UNOWNED) !== 0 && (untracking || !is_updating_effect || active_reaction === null);
404+
active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
406405

407406
derived_sources = null;
408407
set_component_context(reaction.ctx);

0 commit comments

Comments
 (0)