diff --git a/client/src/services/Admin/AdminMutations.ts b/client/src/services/Admin/AdminMutations.ts index e8259af1..093d7b12 100644 --- a/client/src/services/Admin/AdminMutations.ts +++ b/client/src/services/Admin/AdminMutations.ts @@ -172,8 +172,11 @@ export function useDeleteBookingMutation() { }) } +/** + * Utility function to refresh the events cache + */ const invalidateEventsQuery = () => { - queryClient.invalidateQueries({ + queryClient.removeQueries({ queryKey: [ALL_EVENTS_QUERY_KEY] }) }