Cancelling Async Work with AbortController
Users navigate away, type a new search or close a dialog while a request is still running. AbortController lets you cancel that work instead of letting it finish uselessly or, worse, overwrite newer results. Cancel a fetch const controller = new AbortControlle...