Skip to content

Commit c58405a

Browse files
committed
Better lists loading (#802)
* better list loading * change page size for archival and basic listing
1 parent 3bede8b commit c58405a

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const DOMAIN_WORKFLOWS_ARCHIVAL_PAGE_SIZE = 10;
1+
const DOMAIN_WORKFLOWS_ARCHIVAL_PAGE_SIZE = 20;
22

33
export default DOMAIN_WORKFLOWS_ARCHIVAL_PAGE_SIZE;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const DOMAIN_WORKFLOWS_BASIC_PAGE_SIZE = 10;
1+
const DOMAIN_WORKFLOWS_BASIC_PAGE_SIZE = 20;
22

33
export default DOMAIN_WORKFLOWS_BASIC_PAGE_SIZE;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const DOMAIN_WORKFLOWS_PAGE_SIZE = 10;
1+
const DOMAIN_WORKFLOWS_PAGE_SIZE = 20;
22

33
export default DOMAIN_WORKFLOWS_PAGE_SIZE;

src/views/domains-page/helpers/get-all-domains.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import 'server-only';
22
import { cache } from 'react';
33

4-
import { unstable_cache } from 'next/cache';
5-
64
import getConfigValue from '@/utils/config/get-config-value';
75
import * as grpcClient from '@/utils/grpc/grpc-client';
86
import logger from '@/utils/logger';
@@ -44,6 +42,4 @@ export const getAllDomains = async () => {
4442
};
4543
};
4644

47-
export const getCachedAllDomains = cache(
48-
unstable_cache(getAllDomains, ['cluster-domains'], { revalidate: 60 })
49-
);
45+
export const getCachedAllDomains = cache(getAllDomains);

0 commit comments

Comments
 (0)