File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ export const ensureSuspenseTimers = (
27
27
const MIN_SUSPENSE_TIME_MS = 1000
28
28
29
29
const clamp = ( value : number | 'static' | undefined ) =>
30
- value === 'static' ? value : Math . max ( value ?? MIN_SUSPENSE_TIME_MS , MIN_SUSPENSE_TIME_MS )
30
+ value === 'static'
31
+ ? value
32
+ : Math . max ( value ?? MIN_SUSPENSE_TIME_MS , MIN_SUSPENSE_TIME_MS )
31
33
32
34
const originalStaleTime = defaultedOptions . staleTime
33
35
defaultedOptions . staleTime =
@@ -36,7 +38,10 @@ export const ensureSuspenseTimers = (
36
38
: clamp ( originalStaleTime )
37
39
38
40
if ( typeof defaultedOptions . gcTime === 'number' ) {
39
- defaultedOptions . gcTime = Math . max ( defaultedOptions . gcTime , MIN_SUSPENSE_TIME_MS )
41
+ defaultedOptions . gcTime = Math . max (
42
+ defaultedOptions . gcTime ,
43
+ MIN_SUSPENSE_TIME_MS ,
44
+ )
40
45
}
41
46
}
42
47
}
You can’t perform that action at this time.
0 commit comments