unenv
unenv copied to clipboard
support abort `signal` for direct fetch util
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?
Seems a good idea to have if possible. How do you imagine canceling a direct fetch (which is an async function call) though?