Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

memoize graph

AykutSaracc5521a4b2772
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsx
index 7555b469..8a240320 100644
--- a/src/components/Graph/index.tsx
+++ b/src/components/Graph/index.tsx
@@ -38,7 +38,7 @@ const StyledEditorWrapper = styled.div<{ isWidget: boolean }>`
}
`;
-export const Graph = ({
+const GraphComponent = ({
isWidget,
openModal,
setSelectedNode,
@@ -130,3 +130,5 @@ export const Graph = ({
</StyledEditorWrapper>
);
};
+
+export const Graph = React.memo(GraphComponent);
\ No newline at end of file