onRetry: an optional Function that is invoked after a new retry is performed. It's passed the Error that triggered it as a parameter.
But it should say this:
onRetry: an optional Function that is invoked before a new retry is performed. It's passed the Error that triggered it as a parameter.
It's a small but significant difference.
I thought onRetry was useless because the docs say it runs after the retry. Then I tested and found it actually runs before the retry, which is much more useful. The docs should reflect that.
The documentation currently says this:
But it should say this:
It's a small but significant difference.
I thought
onRetry
was useless because the docs say it runs after the retry. Then I tested and found it actually runs before the retry, which is much more useful. The docs should reflect that.