refactor(nodeTypes/edgeTypes): show warning when not memoized closes #1620

This commit is contained in:
moklick
2022-02-22 18:33:59 +01:00
parent a45af5f0f8
commit 6630935d9e
17 changed files with 82 additions and 40 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import ReactFlow, {
addEdge,
Background,
ReactFlowInstance,
EdgeTypesType,
EdgeTypes,
Connection,
useNodesState,
useEdgesState,
@@ -20,7 +20,7 @@ const onInit = (reactFlowInstance: ReactFlowInstance) => reactFlowInstance.fitVi
const { nodes: initialNodes, edges: initialEdges } = createElements();
const edgeTypes: EdgeTypesType = {
const edgeTypes: EdgeTypes = {
floating: FloatingEdge,
};