DEV Community

Discussion on: Aborting a fetch request

Collapse
 
mzaini30 profile image
Zen

I try abort in my project:

But failed. I use abort like this:

for(x of data){
 hello = $.get("/data")
}

$(".button").click(() => hello.abort())