retry-axios
retry-axios copied to clipboard
'shouldRetry' and 'retry' together are not working fine.
Independently both "shouldRetry"and "retry" work fine. When put together, "retry" loses it significance.
` raxConfig: {
retry: 5,
shouldRetry: (err) => {
if(condition) return true;
else return false;
},
onRetryAttempt: (err) => {
return true;
},
},
`
For the above raxConfig, it doesn't stop after 5 retries. It retries infinitely.