Auto refresh: refresh every 5 minutes instead of every 1 minute.

master
Tom Hacohen 4 years ago
parent 99f39f4453
commit bc291b257a

@ -158,7 +158,7 @@ export default function App() {
} }
React.useEffect(() => { React.useEffect(() => {
const interval = 60 * 1000; const interval = 5 * 60 * 1000;
const id = setInterval(autoRefresh, interval); const id = setInterval(autoRefresh, interval);
return () => clearInterval(id); return () => clearInterval(id);
}, []); }, []);

Loading…
Cancel
Save