softonic / axios-retry

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

Fix lastRequestTime being always the original request time #284

Closed obscurecat64 closed 4 months ago

obscurecat64 commented 4 months ago

Fixes #283

This fix ensures that lastRequestTime accurately reflects the timing of each retry.

Issue

The lastRequestTime value was always set to the original request time.

Root Cause

This bug was introduced during the TypeScript migration (v3.9.1 -> v4.0).

Changes

Verification

Verified that the lastRequestTime value now correctly updates with each retry attempt, after the fix. All test cases remain passing.

mindhells commented 4 months ago

thanks a lot @obscurecat64

gitSambhal commented 4 months ago

thank you @obscurecat64