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…
Откажи
Сачувај