@@ -26,7 +26,7 @@ import type {
26
26
} from '../../types/additionalProps' ;
27
27
import { EFlag } from '../../types/api/enums' ;
28
28
import { cn } from '../../utils/cn' ;
29
- import { useTypedDispatch , useTypedSelector } from '../../utils/hooks' ;
29
+ import { useAutoRefreshInterval , useTypedDispatch , useTypedSelector } from '../../utils/hooks' ;
30
30
import { Nodes } from '../Nodes/Nodes' ;
31
31
import { PaginatedStorage } from '../Storage/PaginatedStorage' ;
32
32
import { TabletsTable } from '../Tablets/TabletsTable' ;
@@ -55,6 +55,8 @@ export function Cluster({
55
55
const container = React . useRef < HTMLDivElement > ( null ) ;
56
56
const isClusterDashboardAvailable = useClusterDashboardAvailable ( ) ;
57
57
58
+ const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
59
+
58
60
const dispatch = useTypedDispatch ( ) ;
59
61
60
62
const activeTabId = useClusterTab ( ) ;
@@ -76,7 +78,9 @@ export function Cluster({
76
78
data : { clusterData : cluster , groupsStats} = { } ,
77
79
isLoading : infoLoading ,
78
80
error,
79
- } = clusterApi . useGetClusterInfoQuery ( clusterName ?? undefined ) ;
81
+ } = clusterApi . useGetClusterInfoQuery ( clusterName ?? undefined , {
82
+ pollingInterval : autoRefreshInterval ,
83
+ } ) ;
80
84
81
85
const clusterError = error && typeof error === 'object' ? error : undefined ;
82
86
0 commit comments