vue-resource
vue-resource copied to clipboard
#FT Ability to get request's returned promise in interceptor
Hello,
vue-resource is awesome, nevertheless, I find myself lacking the ability to get request's returned promise from within interceptors.
I'm trying not to fire a request when one of the same type is in flight.
For this, I'm tracking requests in vuex. If one of its own type has already been fired, I'd like the interceptor to return the promise of the first one instead of issuing a new one.
That way, as soon as the request returns, first and subsequent calls are resolved.
Thanking you in advance!