Sfoglia il codice sorgente

homescreen

scraperSetails
Dunja Djokic 4 anni fa
parent
commit
278a9920ad
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/pages/HomePage/HomePage.js

+ 2
- 2
src/pages/HomePage/HomePage.js Vedi File



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





Loading…
Annulla
Salva