File tree 3 files changed +8
-2
lines changed
containers/Tenant/Diagnostics/Configs
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {tenantApi} from '../../../../store/reducers/tenant/tenant';
11
11
import type { FeatureFlagConfig } from '../../../../types/api/featureFlags' ;
12
12
import { cn } from '../../../../utils/cn' ;
13
13
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants' ;
14
+ import { useAutoRefreshInterval } from '../../../../utils/hooks' ;
14
15
15
16
import i18n from './i18n' ;
16
17
@@ -87,7 +88,12 @@ interface ConfigsProps {
87
88
88
89
export const Configs = ( { database} : ConfigsProps ) => {
89
90
const [ search , setSearch ] = useQueryParam ( 'search' , StringParam ) ;
90
- const { currentData = [ ] , isFetching, error} = tenantApi . useGetClusterConfigQuery ( { database} ) ;
91
+ const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
92
+ const {
93
+ currentData = [ ] ,
94
+ isFetching,
95
+ error,
96
+ } = tenantApi . useGetClusterConfigQuery ( { database} , { pollingInterval : autoRefreshInterval } ) ;
91
97
92
98
const onChange = ( value : string ) => {
93
99
setSearch ( value || undefined , 'replaceIn' ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export const nodesListApi = api.injectEndpoints({
16
16
return { error} ;
17
17
}
18
18
} ,
19
- providesTags : [ 'All' ] ,
20
19
} ) ,
21
20
} ) ,
22
21
overrideExisting : 'throw' ,
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ export const tenantApi = api.injectEndpoints({
73
73
return { error} ;
74
74
}
75
75
} ,
76
+ providesTags : [ 'All' ] ,
76
77
} ) ,
77
78
} ) ,
78
79
overrideExisting : 'throw' ,
You can’t perform that action at this time.
0 commit comments