Skip to content

Commit

Permalink
Mark request interceptor as synchronous
Browse files Browse the repository at this point in the history
Axios recently added an option to specify whether a request interceptor is synchronous. See axios/axios#2702.
  • Loading branch information
yepitschunked committed Nov 4, 2021
1 parent 00439f4 commit 37a64fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es/index.mjs
Expand Up @@ -198,7 +198,7 @@ export default function axiosRetry(axios, defaultOptions) {
const currentState = getCurrentState(config);
currentState.lastRequestTime = Date.now();
return config;
});
}, null, { synchronous: true });

axios.interceptors.response.use(null, async (error) => {
const { config } = error;
Expand Down

0 comments on commit 37a64fd

Please sign in to comment.