Skip to content

Commit 9d2280e

Browse files
authored
fix: handlers list that should be refetched in autorefresh mode (#1791)
1 parent db11791 commit 9d2280e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/containers/Tenant/Diagnostics/Configs/Configs.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {tenantApi} from '../../../../store/reducers/tenant/tenant';
1111
import type {FeatureFlagConfig} from '../../../../types/api/featureFlags';
1212
import {cn} from '../../../../utils/cn';
1313
import {DEFAULT_TABLE_SETTINGS} from '../../../../utils/constants';
14+
import {useAutoRefreshInterval} from '../../../../utils/hooks';
1415

1516
import i18n from './i18n';
1617

@@ -87,7 +88,12 @@ interface ConfigsProps {
8788

8889
export 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');

src/store/reducers/nodesList.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const nodesListApi = api.injectEndpoints({
1616
return {error};
1717
}
1818
},
19-
providesTags: ['All'],
2019
}),
2120
}),
2221
overrideExisting: 'throw',

src/store/reducers/tenant/tenant.ts

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const tenantApi = api.injectEndpoints({
7373
return {error};
7474
}
7575
},
76+
providesTags: ['All'],
7677
}),
7778
}),
7879
overrideExisting: 'throw',

0 commit comments

Comments
 (0)