softonic / axios-retry

Axios plugin that intercepts failed requests and retries them whenever possible
Other
1.9k stars 167 forks source link

Mark request interceptor as synchronous #188

Closed yepitschunked closed 2 years ago

yepitschunked commented 3 years ago

Axios recently added an option to specify whether a request interceptor is synchronous. See https://github.com/axios/axios/pull/2702.

This enables requests to be sent as soon as possible, instead of waiting for unnecessary microtasks to be run (which might be blocked behind other main thread work).

mindhells commented 2 years ago

The topic seems interesting, please don't hesitate to create an updated PR in case you think this is still aplicable