I have an api that takes 4 mins(approx.) to get completed in my polymer application. When I send the request at exact 2mins another request gets sent even after timeout and debounce-duration is set to 10 mins. I want to stop that second request sent or wait for the first request to get completed. Some suggested me to use fetch instead of iron-ajax. I need a fix in iron-ajax itself. Can I have a solution for this.
code goes here
<iron-ajax id="request"
url={{request}}
verbose
handle-as="json"
method="{{method}}"
body="{{body}}"
params="{{requestParams}}"
on-error="onError"
loading="{{loading}}"
timeout=600000
content-type="application/json"
debounce-duration=600000
last-error="{{lastError}}"
last-response="{{lastResponse}}">
I hope this will get resolved. Thanks in advance