fix(react): handle setNodes batching in provider #4147

This commit is contained in:
moklick
2024-04-25 12:57:24 +02:00
parent 40937c38ae
commit a7b6789ce0
7 changed files with 187 additions and 104 deletions
+2 -1
View File
@@ -236,7 +236,8 @@ export function getElementsDiffChanges({
const itemsLookup = new Map<string, any>(items.map((item) => [item.id, item]));
for (const item of items) {
const storeItem = lookup.get(item.id);
const lookupItem = lookup.get(item.id);
const storeItem = lookupItem?.internals?.userNode ?? lookupItem;
if (storeItem !== undefined && storeItem !== item) {
changes.push({ id: item.id, item: item, type: 'replace' });