Skip to content

Commit 973dd6f

Browse files
committed
feat: use table in RB
1 parent a5ccc34 commit 973dd6f

20 files changed

+960
-1461
lines changed

src/components/ResourceBrowser/Constants.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ export const NODE_SEARCH_KEYS_TO_OBJECT_KEYS: Record<
351351

352352
export const LOCAL_STORAGE_EXISTS = !!(Storage && localStorage)
353353

354-
export const LOCAL_STORAGE_KEY_FOR_APPLIED_COLUMNS = 'appliedColumns'
355-
356354
export const NODE_K8S_VERSION_FILTER_KEY = 'k8sVersion'
357355

358356
export const MONITORING_DASHBOARD_TAB_ID = 'monitoring_dashboard'

src/components/ResourceBrowser/ResourceBrowser.service.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ export const getNodeList = (
7272

7373
const cacheRepository: Record<string, any> = {}
7474

75+
export const clearCacheRepo = () => {
76+
Object.keys(cacheRepository).forEach((key) => {
77+
delete cacheRepository[key]
78+
})
79+
}
80+
7581
export const cacheResult = async <T = any,>(name: string, promiseCallback: () => Promise<T>) => {
7682
if (cacheRepository[name]) {
7783
return cacheRepository[name] as T

0 commit comments

Comments
 (0)