agraboso/redux-api-middleware

Feature Request: abort request with AbortController signal

Open

#187 aperta il 30 mag 2018

Vedi su GitHub
 (9 commenti) (7 reazioni) (0 assegnatari)JavaScript (202 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1487 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Most probably not a small set of developers had run into wanting to abort an ongoing fetch call. For instance an autocomplete input that makes requests as key events are happening, even with a debouncer.

Now in most browsers AbortController API is available in order to fulfill this task.

This issue is an open question for the community if there's interest in including this feature and what we could achieve. I think an extension of RSAA is needed at least.

What do you guys think? I could definitely set up some code proposals or tests in the next days if this idea gains traction 😃

Guida contributor