Skip to content

Commit 8d9c818

Browse files
committed
yew/vlist: fix key difference point detection
1 parent 7b00d04 commit 8d9c818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

yew/src/virtual_dom/vlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl VList {
141141
a: impl Iterator<Item = &'a Key>,
142142
b: impl Iterator<Item = &'b Key>,
143143
) -> usize {
144-
a.zip(b).filter(|(a, b)| a == b).count()
144+
a.zip(b).take_while(|(a, b)| a == b).count()
145145
}
146146

147147
// Find first key mismatch from the front

0 commit comments

Comments
 (0)