Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Feb 22, 2024
1 parent 84ac10e commit aca34a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/diff/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ function findMatchingIndex(

if (
oldVNode === null ||
(oldVNode && key == oldVNode.key && type === oldVNode.type)
(oldVNode &&
key == oldVNode.key &&
type === oldVNode.type &&
(oldVNode._flags & MATCHED) === 0)
) {
return skewedIndex;
} else if (shouldSearch) {
Expand Down

0 comments on commit aca34a0

Please sign in to comment.