Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 18, 2024
1 parent a194061 commit 4079d92
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,10 @@ function process_effects(effect, collected_effects) {
var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;

if (!is_skippable_branch && (flags & INERT) === 0) {
if (is_branch) {
current_effect.f ^= CLEAN;
}

if ((flags & RENDER_EFFECT) !== 0) {
if (!is_branch && check_dirtiness(current_effect)) {
if (is_branch) {
current_effect.f ^= CLEAN;
} else if (check_dirtiness(current_effect)) {
update_effect(current_effect);
}

Expand Down

0 comments on commit 4079d92

Please sign in to comment.