Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support abort signal for direct fetch util #153

Open
1 task done
danielroe opened this issue Dec 11, 2023 · 1 comment
Open
1 task done

support abort signal for direct fetch util #153

danielroe opened this issue Dec 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@danielroe
Copy link
Member

Describe the feature

See: nuxt/nuxt#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

  • Would you be willing to help implement this feature?
@danielroe danielroe added the enhancement New feature or request label Dec 11, 2023
@pi0 pi0 changed the title AbortController support for cancellable fetch requests support abort signal for direct fetch util Dec 12, 2023
@pi0
Copy link
Member

pi0 commented Dec 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants