DEV Community

Discussion on: Using AbortController (with React Hooks and TypeScript) to cancel window.fetch requests

Collapse
 
oleggromov profile image
Oleg Gromov

Nice!
I bet abort could be used separately after binding it to the instance: const abort = abortController.abort.bind(abortController), although I don't see how this is useful unless you want to pass it around.