Przeglądaj źródła

homescreen

scraperSetails
Dunja Djokic 4 lat temu
rodzic
commit
278a9920ad
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      src/pages/HomePage/HomePage.js

+ 2
- 2
src/pages/HomePage/HomePage.js Wyświetl plik

@@ -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)
}, [])



Ładowanie…
Anuluj
Zapisz