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

184
Vistas
How to cancel first, outdate request if second was alraedy sent

I need to cancel first pending request if another was sent from the same service as the first is outdated already and there is no need to spend time on it as there will be two parallel request from same service.

Could you tell me ways how to do it?

It's GET request from service with @service decorator like:

this.service.get({ id: someId }).then(this.result)
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can't cancel a request from the client's side, once its fired. You can cancel it from the server's side, once a new request arrives - and identify the duplicate using some key in the request headers or body. The only thing you can do on the client's side - is ignore the response of the first request.

about 4 years ago · Juan Pablo Isaza Denunciar
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