From dc76900a286c9a384d902836f113839f52a3fb86 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Thu, 17 Aug 2023 14:09:43 +0300 Subject: [PATCH] feat(edge/stacks): reload edge stacks from server [EE-5970] (#10062) --- app/react/edge/edge-stacks/ListView/ListView.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/react/edge/edge-stacks/ListView/ListView.tsx b/app/react/edge/edge-stacks/ListView/ListView.tsx index a2a25cea8..a57110b49 100644 --- a/app/react/edge/edge-stacks/ListView/ListView.tsx +++ b/app/react/edge/edge-stacks/ListView/ListView.tsx @@ -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 ( <> - + queryClient.invalidateQueries(queryKeys.base())} + />