Don’t waste bandwidth. If a user clicks a button 10 times, you should abort the previous 9 requests using AbortController.
const controller = new AbortController();
fetch(url, { signal: controller.signal });
// Later...
controller.abort();
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Don’t waste bandwidth. If a user clicks a button 10 times, you should abort the previous 9 requests using AbortController.
const controller = new AbortController();
fetch(url, { signal: controller.signal });
// Later...
controller.abort();