AykutSarac 2 роки тому
батько
коміт
c5521a4b27
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      src/components/Graph/index.tsx

+ 3 - 1
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);