From 4e454409ad5343b7b3b27fa1de99a91993fce63f Mon Sep 17 00:00:00 2001 From: Viktor Tolmachev <119614372+tolmachev21@users.noreply.github.com> Date: Fri, 31 Jan 2025 15:11:37 +0500 Subject: [PATCH] fix(condo): DOMA-11007 clear ROOT_QUERY when page is update (#5712) * fix(condo): DOMA-11007 clear ROOT_QUERY when page is update * fix(condo): DOMA-11007 add TODO --- apps/condo/domains/ticket/components/BaseTicketForm/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/condo/domains/ticket/components/BaseTicketForm/index.tsx b/apps/condo/domains/ticket/components/BaseTicketForm/index.tsx index e060748e565..ca311b6de76 100644 --- a/apps/condo/domains/ticket/components/BaseTicketForm/index.tsx +++ b/apps/condo/domains/ticket/components/BaseTicketForm/index.tsx @@ -804,6 +804,8 @@ export const BaseTicketForm: React.FC = (props) => { client.cache.evict({ id: 'ROOT_QUERY', fieldName: 'allTicketChanges' }) client.cache.evict({ id: 'ROOT_QUERY', fieldName: 'allContacts' }) client.cache.evict({ id: 'ROOT_QUERY', fieldName: 'allInvoices' }) + // TODO: DOMA-11038 delete this evict, then cache in ROOT_QUERY works correctly + client.cache.evict({ id: 'ROOT_QUERY', fieldName: 'allTicketComments' }) client.cache.gc() if (afterActionCompleted) {