From 4bd86e3f7b18fd33054cbddeae185bc5cde6338e Mon Sep 17 00:00:00 2001 From: Kairee Wu Date: Tue, 4 Feb 2020 23:14:05 +0800 Subject: [PATCH] perf(data): improve fetch interval from 2s to 5s --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index fc0dbc5..d5ac226 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,7 +23,7 @@ const App: React.FC = () => { setIsOnline(true); }) .catch(e => console.log('错误:',e)) - }, 2000); + }, 5000); return () => { clearInterval(fetchData); }