File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
containers/Tenant/Diagnostics/Configs Expand file tree Collapse file tree 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';
1111import type { FeatureFlagConfig } from '../../../../types/api/featureFlags' ;
1212import { cn } from '../../../../utils/cn' ;
1313import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants' ;
14+ import { useAutoRefreshInterval } from '../../../../utils/hooks' ;
1415
1516import i18n from './i18n' ;
1617
@@ -87,7 +88,12 @@ interface ConfigsProps {
8788
8889export const Configs = ( { database} : ConfigsProps ) => {
8990 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 } ) ;
9197
9298 const onChange = ( value : string ) => {
9399 setSearch ( value || undefined , 'replaceIn' ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export const nodesListApi = api.injectEndpoints({
1616 return { error} ;
1717 }
1818 } ,
19- providesTags : [ 'All' ] ,
2019 } ) ,
2120 } ) ,
2221 overrideExisting : 'throw' ,
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ export const tenantApi = api.injectEndpoints({
7373 return { error} ;
7474 }
7575 } ,
76+ providesTags : [ 'All' ] ,
7677 } ) ,
7778 } ) ,
7879 overrideExisting : 'throw' ,
You can’t perform that action at this time.
0 commit comments