From 48659a2957f6bf8f6946307e5e2efcdd51ca431d Mon Sep 17 00:00:00 2001 From: Chintan Sudani <46838508+csudani7@users.noreply.github.com> Date: Thu, 2 Feb 2023 10:52:14 +0530 Subject: [PATCH] fix: resolved violating issue on change of layout API call (#2164) * fix: Removed Strict mode to stop render twice * fix: resolved issue on change of layout API call --- frontend/src/container/GridGraphLayout/Graph/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/container/GridGraphLayout/Graph/index.tsx b/frontend/src/container/GridGraphLayout/Graph/index.tsx index 011af4e46d..a9dee6b018 100644 --- a/frontend/src/container/GridGraphLayout/Graph/index.tsx +++ b/frontend/src/container/GridGraphLayout/Graph/index.tsx @@ -43,6 +43,7 @@ function GridCardGraph({ const { ref: graphRef, inView: isGraphVisible } = useInView({ threshold: 0, triggerOnce: true, + initialInView: true, }); const [errorMessage, setErrorMessage] = useState('');