Skip to content

Commit 28b81ef

Browse files
authored
Fix: Default timeout -> 5 min (#2228)
1 parent 3a10d59 commit 28b81ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/client/src/api/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface ApiQueryMeta extends QueryMeta {
7878
}
7979

8080
const DELAY_1_MIN = 60 * 1000
81+
const DELAY_5_MIN = 5 * DELAY_1_MIN
8182
const DELAY_10_MIN = 10 * DELAY_1_MIN
8283

8384
export type UseQueryWithTimeoutOptions<
@@ -442,7 +443,7 @@ function useQueryWithTimeout<
442443
queryKey: TQueryKey
443444
},
444445
{
445-
delay = DELAY_1_MIN,
446+
delay = DELAY_5_MIN,
446447
removeTimeoutErrorAfter,
447448
errorKey = EnumErrorKey.API,
448449
trigger,

0 commit comments

Comments
 (0)