From aca34a0c64dcf6fc8424730e406c2c1d1c2cceb9 Mon Sep 17 00:00:00 2001 From: jdecroock Date: Thu, 22 Feb 2024 08:54:06 +0100 Subject: [PATCH] fix it --- src/diff/children.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/diff/children.js b/src/diff/children.js index cc450b435c..2c6c742798 100644 --- a/src/diff/children.js +++ b/src/diff/children.js @@ -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) {