Fix throttle function, add retryAuth

This commit is contained in:
Jon Staab
2025-09-03 17:31:19 -07:00
parent f009801c84
commit 3b99cb7d4c
3 changed files with 23 additions and 13 deletions
+3 -2
View File
@@ -1109,9 +1109,10 @@ export const throttle = <F extends (...args: any[]) => any>(ms: number, f: F) =>
if (nextArgs) {
f(...nextArgs)
nextArgs = undefined
setTimeout(unpause, ms)
} else {
paused = false
}
paused = false
}
return (...thisArgs: Parameters<F>) => {