To avoid duplication of requests (double click), I would be able to stop a running query. I do not see how. Can you help me please ? ``` let inProcess = false; return Restangular.withConfig(function(RestangularConfigurer) { RestangularConfigurer ... .addFullRequestInterceptor(function(element, operation, what, url, headers) { if (inProcess) { // cancel the request here return; } inProcess = true; }) ... }); ```
Activity
daviesgeek commentedon Jun 16, 2016
Here's the way I've done it:
This is a little counterintuitive, so let me explain.
$httptakes atimeoutparameter (see the $http docs:Resolving the promise (
cancelerin this case), will cancel the requestclementbirkle commentedon Jun 24, 2016
Really great ! It works well, thank you for your solution :)
feat(docs) Add FAQ about cancelling request