Update docs for getRetryDelay()

This commit is contained in:
JonnyBurger
2025-09-30 15:03:29 +02:00
parent 548ca74c93
commit 26c1debb7a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ export type UrlSourceOptions = {
* failed. If the function returns `null`, no more retries will be made.
*
* By default, it uses an exponential backoff algorithm that never gives up unless
* a CORS error is suspected (`fetch()` did reject even though `navigator.onLine` is true)
* a CORS error is suspected (`fetch()` did reject, `navigator.onLine` is true and origin is different)
*/
getRetryDelay?: (previousAttempts: number, error: unknown, url: string | URL | Request) => number | null;