Skip to content

Commit bfb969a

Browse files
authored
chore: simplify process_effects (#15809)
1 parent a1adf2b commit bfb969a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

-7
Original file line numberDiff line numberDiff line change
@@ -780,19 +780,12 @@ function process_effects(root) {
780780
} else if (is_branch) {
781781
effect.f ^= CLEAN;
782782
} else {
783-
// Ensure we set the effect to be the active reaction
784-
// to ensure that unowned deriveds are correctly tracked
785-
// because we're flushing the current effect
786-
var previous_active_reaction = active_reaction;
787783
try {
788-
active_reaction = effect;
789784
if (check_dirtiness(effect)) {
790785
update_effect(effect);
791786
}
792787
} catch (error) {
793788
handle_error(error, effect, null, effect.ctx);
794-
} finally {
795-
active_reaction = previous_active_reaction;
796789
}
797790
}
798791

0 commit comments

Comments
 (0)