@@ -23,7 +23,7 @@ import { confirmDelete } from '~/stores/confirm-delete'
2323import { makeLinkCell } from '~/table/cells/LinkCell'
2424import { getActionsCol , type MenuAction } from '~/table/columns/action-col'
2525import { Columns } from '~/table/columns/common'
26- import { useQueryTable } from '~/table/QueryTable'
26+ import { PAGE_SIZE , useQueryTable } from '~/table/QueryTable'
2727import { buttonStyle } from '~/ui/lib/Button'
2828import { EmptyMessage } from '~/ui/lib/EmptyMessage'
2929import { PageHeader , PageTitle } from '~/ui/lib/PageHeader'
@@ -42,19 +42,21 @@ const EmptyState = () => (
4242
4343const colHelper = createColumnHelper < Vpc > ( )
4444
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
4646// sure it matches the call in the QueryTable
4747VpcsPage . loader = async ( { params } : LoaderFunctionArgs ) => {
4848 const { project } = getProjectSelector ( params )
49- await apiQueryClient . prefetchQuery ( 'vpcList' , { query : { project, limit : 25 } } )
49+ await apiQueryClient . prefetchQuery ( 'vpcList' , { query : { project, limit : PAGE_SIZE } } )
5050 return null
5151}
5252
5353export function VpcsPage ( ) {
5454 const queryClient = useApiQueryClient ( )
5555 const { project } = useProjectSelector ( )
5656 // 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+ } )
5860 const navigate = useNavigate ( )
5961
6062 const deleteVpc = useApiMutation ( 'vpcDelete' , {
0 commit comments