Relative Content

Tag Archive for javascriptfetch-apiabortcontroller

Abort Controller does not cancel All the pending requests

In my project all the requests goes through a single fetch function. In that I am storing all the abort controller inside and global set. When the user swictches to another page I will call the global set and abort all fetch requests that are waiting for response. If a response is received for a req I remove its controller from the set.