-
Notifications
You must be signed in to change notification settings - Fork 4
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
how to add support of abortController in react ketting #99
Comments
A good place to start with be to add it to the The trickiest thing to keep in mind is that multiple calls to |
Thanks For your reply @evert . setIsLoading(true); return () => { |
The primary blocker I see for getting this to work is the private optionsToRequestInit function in resource.ts would not forward the AbortController signal onwards to the fetcher. |
So the main issue is, how are you going to deal with de-duplicated requests? For example, it's possible to do 2 GET requests, but Ketting will ensure only 1 goes out. What happens if the first one AbortController and it got aborted. What happens if the second one got an AbortController and it got cancelled? |
Maybe both GET requests can be invoked with the same signal? So cancelling any of them will cancel the other as well? |
I wanna add abortController support in react ketting.. Is there any way to use abortController in ketting get request?
@evert Please help on this
The text was updated successfully, but these errors were encountered: