Procházet zdrojové kódy

homescreen

scraperSetails
Dunja Djokic před 4 roky
rodič
revize
278a9920ad
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/pages/HomePage/HomePage.js

+ 2
- 2
src/pages/HomePage/HomePage.js Zobrazit soubor

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



Načítá se…
Zrušit
Uložit