Skip to content

Commit

Permalink
chore(room-booking): refetch bookings after deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Oct 26, 2024
1 parent 825ed43 commit 3cf62c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/room-booking/list/BookingsListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export function BookingCard({
queryClient.invalidateQueries({
queryKey: $roomBooking.queryOptions("get", "/bookings/my").queryKey,
});
queryClient.invalidateQueries({
// All /bookings/ queries, with any params
queryKey: ["roomBooking", "get", "/bookings/"],
});
},
},
);
Expand Down

0 comments on commit 3cf62c3

Please sign in to comment.