feat(edge/stacks): reload edge stacks from server [EE-5970] (#10061)

pull/10077/head
Chaim Lev-Ari 1 year ago committed by GitHub
parent 0f6607e703
commit 36b8c849b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,11 +1,22 @@
import { useQueryClient } from 'react-query';
import { PageHeader } from '@@/PageHeader';
import { queryKeys } from '../queries/query-keys';
import { EdgeStacksDatatable } from './EdgeStacksDatatable';
export function ListView() {
const queryClient = useQueryClient();
return (
<>
<PageHeader title="Edge Stacks list" breadcrumbs="Edge Stacks" reload />
<PageHeader
title="Edge Stacks list"
breadcrumbs="Edge Stacks"
reload
onReload={() => queryClient.invalidateQueries(queryKeys.base())}
/>
<EdgeStacksDatatable />
</>

Loading…
Cancel
Save