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 = (
2727 const MIN_SUSPENSE_TIME_MS = 1000
2828
2929 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 )
3133
3234 const originalStaleTime = defaultedOptions . staleTime
3335 defaultedOptions . staleTime =
@@ -36,7 +38,10 @@ export const ensureSuspenseTimers = (
3638 : clamp ( originalStaleTime )
3739
3840 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+ )
4045 }
4146 }
4247}
You can’t perform that action at this time.
0 commit comments