Skip to content

Commit f8e4bc4

Browse files
Copilotmikebarkmin
andcommitted
Fix createNewOnEdgeDrop by adding missing dependencies to useCallback
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
1 parent 83682a1 commit f8e4bc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MemoryView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export const MemoryView = () => {
237237
}
238238
connectingNode.current = null;
239239
},
240-
[nodes, memory]
240+
[nodes, memory, reactFlowInstance, setNodes, setEdges]
241241
);
242242

243243
const onGC = () => {

0 commit comments

Comments
 (0)