From 99f39f44535b99469c574f20f928bd2f7743444c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 30 Sep 2020 16:01:14 +0300 Subject: [PATCH] Auto refresh: fix usage of useEffect. --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index bc69bdb..cb8f4ba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -161,7 +161,7 @@ export default function App() { const interval = 60 * 1000; const id = setInterval(autoRefresh, interval); return () => clearInterval(id); - }); + }, []); function toggleDrawer() { setDrawerOpen(!drawerOpen);