Skip to content

Commit

Permalink
fix: should do an else if on when using skip_diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Apr 19, 2024
1 parent 8416eb6 commit 9299a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/src/vdom/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,13 @@ fn create_attribute_patches<'a, MSG>(
if USE_SKIP_DIFF && has_skip_indices && is_subset_of(&old_indices, &skip_indices) {
//
}
if old_attr_values != new_attr_values {
else if old_attr_values != new_attr_values {
for (_i, new_att) in new_attrs {
add_attributes.push(new_att);
}
}
} else {
// these are new attributes
for (_i, new_att) in new_attrs {
add_attributes.push(new_att);
}
Expand Down

0 comments on commit 9299a4f

Please sign in to comment.