fix: define an empty waiting object at creation

This commit is contained in:
Hazork 2021-09-11 09:13:40 -03:00
parent 026d41e013
commit 2c49a49a63

View File

@ -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 = {