prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

Add default retryCondition method to AxiosRetryConfig #278

Closed pattra closed 1 week ago

pattra commented 1 week ago

Some users were ending up in a situation where leaving retryCondition undefined would result in a retryCondition is not a function error.

Normally leaving this field blank shouldn't cause issues (retryCondition is an optional field), but this fallback should cover any strange corner cases.