unenv icon indicating copy to clipboard operation
unenv copied to clipboard

support abort `signal` for direct fetch util

Open danielroe opened this issue 2 years ago • 1 comments

Describe the feature

See: https://github.com/nuxt/nuxt/issues/22684

We don't yet support AbortController meaning that the fetch created with createFetch does not have a way to cancel requests. This may be desirable, depending on the difficulty of implementing a signal, but I thought it would be worth tracking it all the same.

Additional information

  • [X] Would you be willing to help implement this feature?

danielroe avatar Dec 11 '23 18:12 danielroe

Seems a good idea to have if possible. How do you imagine canceling a direct fetch (which is an async function call) though?

pi0 avatar Dec 12 '23 17:12 pi0