You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importfetch,{ABORT_ERROR}from'custom-fetch'constabortableFetch=makeAbortable(fetch)// Defaults to `window.fetch` if no fetch is passedconstrequest=abortableFetch('/URL')// Returns an object with a `promise` and an `abort` property// To abortrequest.abort()// To get responseconstresponse=awaitrequest.promise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters