Explorar el Código

homescreen

scraperSetails
Dunja Djokic hace 4 años
padre
commit
278a9920ad
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/pages/HomePage/HomePage.js

+ 2
- 2
src/pages/HomePage/HomePage.js Ver fichero

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



Cargando…
Cancelar
Guardar