diff --git a/packages/metro-cache/src/Cache.js b/packages/metro-cache/src/Cache.js index 25db66a74c..b68fc9d7ca 100644 --- a/packages/metro-cache/src/Cache.js +++ b/packages/metro-cache/src/Cache.js @@ -85,6 +85,10 @@ export default class Cache { const stores = this.#stores; const stop = this.#hits.get(key); const length = stores.length; + if (length === 0 || stores[0] === stop) { + return; + } + const promises = []; const writeErrors = []; const storesWithErrors = new Set();