Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!