Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

128
Vistas
How to send most up-to-date value from the state before the browser is closed?

It's 2 am, and I think it is time for a stupid question. So, if I have a setInterval() code running that would send a value update to the server every certain amount of time (10 secs, 1 min). If the browser is closed or the user navigates away from the page, is there a way to send the value update to the server with the up-to-date value before the user leaves? And can anyone recommend what I should look up for a topic like this? I am unsure how to look up this part of the event loop. TIA!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda