fix: delete waiting object after resolving it

This commit is contained in:
Arthur Fiorette 2021-09-30 17:52:10 -03:00
parent 87e07b5b83
commit 7d5257eee1

View File

@ -97,6 +97,7 @@ export class CacheResponseInterceptor implements AxiosInterceptor<CacheAxiosResp
// Resolve all other requests waiting for this response
await deferred?.resolve(newCache.data);
delete this.axios.waiting[key];
await this.axios.storage.set(key, newCache);