Skip to content

Commit

Permalink
fix: add edit list cache invalidation to useActionEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed May 30, 2024
1 parent d74dd29 commit f55a079
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions services/hooks/edit/use-action-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ const useActionEdit = ({ action }: Props) => {
queryKey: ['edit'],
exact: false,
});

await queryClient.invalidateQueries({
queryKey: ['editList'],
exact: false,
});
},
});
};
Expand Down

0 comments on commit f55a079

Please sign in to comment.