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 9da4927 commit 026a1f2Copy full SHA for 026a1f2
packages/svelte/src/internal/client/runtime.js
@@ -399,10 +399,9 @@ export function update_reaction(reaction) {
399
new_deps = /** @type {null | Value[]} */ (null);
400
skipped_deps = 0;
401
untracked_writes = null;
402
- active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
403
skip_reaction =
404
- (flags & UNOWNED) !== 0 &&
405
- (!is_updating_effect || previous_reaction === null || previous_untracking);
+ (flags & UNOWNED) !== 0 && (untracking || !is_updating_effect || active_reaction === null);
+ active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
406
407
derived_sources = null;
408
set_component_context(reaction.ctx);
0 commit comments