You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying infinite scrolling for list of data fetching from an API. On some condition the same api call is being called multiple times subsequently. I've tried to cancel the multiple axios calls using Cancel API in axios. The requests are getting cancelled, but the one active request taking too long time to response.
The following is the scenario about timing issue i am facing for ex:
The first api call takes the time of about 5.40s
The next active api call after canceling one time takes 10.57s
The next active api call after canceling two times takes 15.90s
The next active api call after canceling three times takes 21.12s
The next active api call after canceling four times takes 25.96s
Please help me to reduce the active api call timing.
Thanks in advance.
Issue Code
Here is the Code I've used to test the axios cancellation. For security reason the API URL is changed.
Issue Description
I'm trying infinite scrolling for list of data fetching from an API. On some condition the same api call is being called multiple times subsequently. I've tried to cancel the multiple axios calls using Cancel API in axios. The requests are getting cancelled, but the one active request taking too long time to response.
The following is the scenario about timing issue i am facing for ex:
Please help me to reduce the active api call timing.
Thanks in advance.
Issue Code
Here is the Code I've used to test the axios cancellation. For security reason the API URL is changed.
Expected behavior, if applicable
The active API call should take same timing as the first API call even after cancelling subsequent API calls.
Environment:
Screenshots
The text was updated successfully, but these errors were encountered: