We've previously seen how to cancel an Axios request when the useEffect hook cleanup function gets called, but in this video we'll convert Axios over to use Fetch and see how we can cancel the Fetch request using an AbortController.
Code examples can be found here - https://github.com/leighhalliday/use-...
Art by Mark Kirkpatrick - https://www.artstation.com/visualhuman
Watch video Cancelling a Fetch request in a useEffect hook online without registration, duration hours minute second in high quality. This video was added by user Leigh Halliday 26 February 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,910 once and liked it 176 people.