Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom shouldRetry in retryConfig (follow up) #5762

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

robwalch
Copy link
Collaborator

This PR will...

Replace httpStatus argument with LoaderResponse in config.shouldRetry

Why is this Pull Request needed?

Allows config.shouldRetry handler to use LoaderResponse.url and LoaderResponse.code (http status) in its reasoning.

Are there any points in the code the reviewer needs to double check?

Resolves issues:

#5647
#5658

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.5.0 milestone Aug 23, 2023
@robwalch
Copy link
Collaborator Author

Hi @PavelFomin90,

Sorry for the delay. I merged your PR into this branch and added this change (47e4bb2) so that you could change the retry behavior based on URL as well as status code.

@robwalch robwalch merged commit 82a2589 into master Aug 31, 2023
17 checks passed
@robwalch robwalch deleted the feature/custom-should-retry branch August 31, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants