nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

cancel http request at route change

Open FZampetti opened this issue 5 years ago • 2 comments

Hello everybody, how can i cancel http pending requests at route change? I tried putting a takeuntil in my httpinterceptor where I passed a subject and then at the route change I used the next() for the subject. This works fine in my angular project but it doesn't in my nativescript-angular app. Could you help me? Thanks in advance,

Best regards

FZampetti avatar Jul 22 '20 10:07 FZampetti

As far as I know there is no possibility to cancel a request in NativeScript. But my knowledge on this issue is nearly two years old, so I'm happy to get an update whether this is possible now 😉

OliverNiebsch avatar Jul 27 '20 07:07 OliverNiebsch

Hi, Can we cancel requests with switchMap?

Thanks

arturikoX avatar Oct 25 '20 10:10 arturikoX