瀏覽代碼

homescreen

scraperSetails
Dunja Djokic 4 年之前
父節點
當前提交
278a9920ad
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/pages/HomePage/HomePage.js

+ 2
- 2
src/pages/HomePage/HomePage.js 查看文件

@@ -8,10 +8,10 @@ const HomePage = () => {

useEffect(() => {
getAllScrappes().then(res => setScrappes(res.data))
setInterval(() => {
const interval = setInterval(() => {
getAllScrappes().then(res => setScrappes(res.data))
}, 10000);
return () => clearInterval()
return () => clearInterval(interval)
}, [])



Loading…
取消
儲存