DEV Community

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

Collapse
 
sebastienlorber profile image
Sebastien Lorber

great :)

Just want to add a tiny detail that you missed: if abortion happens during the response.json() call, the abortion won't abort anything and you'll still setProfileInfo :)

Check my long article on the subject if you want more details: dev.to/sebastienlorber/handling-ap...