mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
fix: delete waiting object after resolving it
This commit is contained in:
parent
87e07b5b83
commit
7d5257eee1
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user