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

pull/10076/head
Chaim Lev-Ari 1 year ago committed by GitHub
parent 74eeb9da06
commit dc76900a28
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