Skip to content

Commit d852530

Browse files
committed
fix: retry data race
1 parent f86c9c3 commit d852530

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export const resolveKyOptions = (): Options => {
113113
],
114114
beforeRetry: [
115115
async (opts) => {
116+
const apiConfig = (opts.options as any).apiConfig as ApiConfigResolved
116117
const isRetry = await apiConfig.beforeRetry(opts)
117118
if (isRetry) return
118119
throw opts.error

0 commit comments

Comments
 (0)