fix(react): use equlity check for adopt user nodes

This commit is contained in:
moklick
2024-04-16 17:52:15 +02:00
parent 27987006f3
commit 5af34fd9d4

View File

@@ -46,7 +46,7 @@ const createRFStore = ({
//
// When this happens, we take the note objects passed by the user and extend them with fields
// relevant for internal React Flow operations.
adoptUserNodes(nodes, nodeLookup, parentLookup, { nodeOrigin, elevateNodesOnSelect });
adoptUserNodes(nodes, nodeLookup, parentLookup, { nodeOrigin, elevateNodesOnSelect, checkEquality: true });
set({ nodes });
},