@@ -23,7 +23,7 @@ import { confirmDelete } from '~/stores/confirm-delete'
23
23
import { makeLinkCell } from '~/table/cells/LinkCell'
24
24
import { getActionsCol , type MenuAction } from '~/table/columns/action-col'
25
25
import { Columns } from '~/table/columns/common'
26
- import { useQueryTable } from '~/table/QueryTable'
26
+ import { PAGE_SIZE , useQueryTable } from '~/table/QueryTable'
27
27
import { buttonStyle } from '~/ui/lib/Button'
28
28
import { EmptyMessage } from '~/ui/lib/EmptyMessage'
29
29
import { PageHeader , PageTitle } from '~/ui/lib/PageHeader'
@@ -42,19 +42,21 @@ const EmptyState = () => (
42
42
43
43
const colHelper = createColumnHelper < Vpc > ( )
44
44
45
- // just as in the vpcList call for the quick actions menu, include limit: 25 to make
45
+ // just as in the vpcList call for the quick actions menu, include limit to make
46
46
// sure it matches the call in the QueryTable
47
47
VpcsPage . loader = async ( { params } : LoaderFunctionArgs ) => {
48
48
const { project } = getProjectSelector ( params )
49
- await apiQueryClient . prefetchQuery ( 'vpcList' , { query : { project, limit : 25 } } )
49
+ await apiQueryClient . prefetchQuery ( 'vpcList' , { query : { project, limit : PAGE_SIZE } } )
50
50
return null
51
51
}
52
52
53
53
export function VpcsPage ( ) {
54
54
const queryClient = useApiQueryClient ( )
55
55
const { project } = useProjectSelector ( )
56
56
// to have same params as QueryTable
57
- const { data : vpcs } = usePrefetchedApiQuery ( 'vpcList' , { query : { project, limit : 25 } } )
57
+ const { data : vpcs } = usePrefetchedApiQuery ( 'vpcList' , {
58
+ query : { project, limit : PAGE_SIZE } ,
59
+ } )
58
60
const navigate = useNavigate ( )
59
61
60
62
const deleteVpc = useApiMutation ( 'vpcDelete' , {
0 commit comments