Auto refresh: fix usage of useEffect.
parent
0a84405619
commit
99f39f4453
|
@ -161,7 +161,7 @@ export default function App() {
|
|||
const interval = 60 * 1000;
|
||||
const id = setInterval(autoRefresh, interval);
|
||||
return () => clearInterval(id);
|
||||
});
|
||||
}, []);
|
||||
|
||||
function toggleDrawer() {
|
||||
setDrawerOpen(!drawerOpen);
|
||||
|
|
Loading…
Reference in New Issue