From ed394ad4d6d40fb268275ef2bdd6181344f6d3e3 Mon Sep 17 00:00:00 2001 From: Thomas Chazot Date: Mon, 11 Dec 2023 15:32:13 +0100 Subject: [PATCH] =?UTF-8?q?fix=20de=20la=20fuite=20m=C3=A9moire=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptide_project/src/Components/GraphContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx index bf76136..8ba6e93 100644 --- a/cryptide_project/src/Components/GraphContainer.tsx +++ b/cryptide_project/src/Components/GraphContainer.tsx @@ -96,6 +96,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS const [elapsedTime, setElapsedTime] = useState(0); useEffect(() => { + console.log("ligne 99") if (testFirst){ testTemps = 0 endgame = false @@ -123,7 +124,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS // Nettoyez l'intervalle lorsque le composant est démonté return () => clearInterval(intervalId); - }, [elapsedTime, endgame]); + }, []); useEffect(() => {