Skip to content

Commit

Permalink
fix(condo): DOMA-11007 clear ROOT_QUERY when page is update (#5712)
Browse files Browse the repository at this point in the history
* fix(condo): DOMA-11007 clear ROOT_QUERY when page is update

* fix(condo): DOMA-11007 add TODO
  • Loading branch information
tolmachev21 authored Jan 31, 2025
1 parent 00007e1 commit 4e45440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/condo/domains/ticket/components/BaseTicketForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,8 @@ export const BaseTicketForm: React.FC<ITicketFormProps> = (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) {
Expand Down

0 comments on commit 4e45440

Please sign in to comment.