Skip to content

Commit

Permalink
fix swap estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Apr 12, 2022
1 parent 6d8f9ef commit 5790c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/axios-prevent-concurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function preventConcurrencyAdapter(adapter) {
}

//@TODO handle unsorted query params and duplicate slashes (maybe use buildSortedUrl from axios-extensions)
const url = config.baseURL = config.url;
const url = config.baseURL + config.url;
// do nothing for sequential duplicates, they will get response from the cache (anyway if 3rd request will come, this 2nd will be canceled with original request, because 2nd will be same as 1st cached)
if (activeList[id]?.url === url) {
return adapter(config);
Expand Down

0 comments on commit 5790c2a

Please sign in to comment.