Skip to content

Commit

Permalink
fix: define an empty waiting object at creation
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 11, 2021
1 parent 026d41e commit 2c49a49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/axios/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function createCache(

axiosCache.storage = options.storage || new MemoryStorage();
axiosCache.generateKey = options.generateKey || defaultKeyGenerator;
axiosCache.waiting = options.waiting || {};

// CacheRequestConfig values
axiosCache.defaults = {
Expand Down

0 comments on commit 2c49a49

Please sign in to comment.