From 38911857aae9bcb723847a82692a5898d9665ecc Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette Date: Sun, 11 Sep 2022 18:59:23 +0200 Subject: [PATCH] fix: infiniti refresh loop --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 25dbd9cb11..217457148c 100644 --- a/src/App.js +++ b/src/App.js @@ -86,7 +86,7 @@ export default function App() { React.useEffect(() => { refresh(); - }); + }, [refresh]); const location = useLocation(); const { trackPageView } = useMatomo();