If you're using fetch to enhance form submissions, you may be introducing a common bug. In this video, @heyAustinGil will show you the issue with duplicate requests, race conditions, and how to abort previous requests using AbortController.
Links:
Aborting a fetch - developer.mozilla.org/en-US/d...
AbortController - developer.mozilla.org/en-US/d...
Watch Austin's Livestreams here:
RU-vid: / heyaustingil
Twitch: / heyaustingil
Website: austingil.com/
Chapters:
0:00 - Introduction
0:13 - How to Avoid Duplicate Requests in Fetch Enhanced Forms
6:06 - Recap & Wrap Up
#webdevelopment #abortcontroller #formsubmission
1 авг 2024