hoppscotch / hoppscotch-extension

🧩 Browser extensions to provide more capabilities to https://hoppscotch.io
https://hoppscotch.io
MIT License
254 stars 95 forks source link

fix: cannot send requests via extension after cancelling one #243

Closed amk-dev closed 9 months ago

amk-dev commented 10 months ago

Closes #242

Fixes HFE-366

Before

Once a request running via extension gets cancelled. all subsequent requests also fail. this is because we were using a single AbortController instance to cancel the request. so once a request is cancelled. AbortController enters the aborted state and all the subsequent requests are immediately aborted.

After

We reset the AbortController instance after every cancellation.