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
Block requests by returning false from a url function, heres the use case!
You can globally prevent duplicating requests within the same time period.
letlastUrl;constonURL=url=>{//block repeat requests within a second of each otherif(url===lastUrl)returnfalse;lastUrl=url;setTimeout(()=>lastUrl='',1000);returnurl};letresponse=awaitpartial` url: ${onURL}`;//request was made multiple times in a second, return false!if(response.requestBlocked)returnfalse