Skip to content

Commit

Permalink
clone promise (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
VarshaAdigaBV authored Mar 26, 2024
1 parent 9830a00 commit e57371b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bvFetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = function BvFetch ({ shouldCache, cacheName }) {

// check if there is an ongoing promise
if (this.fetchPromises.has(cacheKey)) {
return this.fetchPromises.get(cacheKey);
return this.fetchPromises.get(cacheKey).then(res => res.clone());
}

// Make a new call
Expand Down

0 comments on commit e57371b

Please sign in to comment.