diff --git a/frontend/src/queries/reviews/useApproveReviewQuery.ts b/frontend/src/queries/reviews/useApproveReviewQuery.ts index c394a9b..643b815 100644 --- a/frontend/src/queries/reviews/useApproveReviewQuery.ts +++ b/frontend/src/queries/reviews/useApproveReviewQuery.ts @@ -14,6 +14,7 @@ export default function useApproveReviewQuery({ projectId, reviewId, memberId }: mutationFn: () => approveReview(projectId, reviewId), onSuccess: () => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', projectId, reviewId, memberId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', projectId, reviewId, memberId] }); }, }); } diff --git a/frontend/src/queries/reviews/useCreateReviewQuery.ts b/frontend/src/queries/reviews/useCreateReviewQuery.ts index cdee175..a3108de 100644 --- a/frontend/src/queries/reviews/useCreateReviewQuery.ts +++ b/frontend/src/queries/reviews/useCreateReviewQuery.ts @@ -18,6 +18,7 @@ export default function useCreateReviewQuery() { onSuccess: (_, variables) => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', variables.projectId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', variables.projectId] }); }, }); } diff --git a/frontend/src/queries/reviews/useDeleteReviewQuery.ts b/frontend/src/queries/reviews/useDeleteReviewQuery.ts index 255ba3a..116e458 100644 --- a/frontend/src/queries/reviews/useDeleteReviewQuery.ts +++ b/frontend/src/queries/reviews/useDeleteReviewQuery.ts @@ -9,6 +9,7 @@ export default function useDeleteReviewQuery() { deleteReview(projectId, reviewId, memberId), onSuccess: (_, variables) => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', variables.projectId, variables.reviewId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', variables.projectId, variables.reviewId] }); }, }); } diff --git a/frontend/src/queries/reviews/useRejectReviewQuery.ts b/frontend/src/queries/reviews/useRejectReviewQuery.ts index 28c7b80..1e4f323 100644 --- a/frontend/src/queries/reviews/useRejectReviewQuery.ts +++ b/frontend/src/queries/reviews/useRejectReviewQuery.ts @@ -14,6 +14,7 @@ export default function useRejectReviewQuery({ projectId, reviewId, memberId }: mutationFn: () => rejectReview(projectId, reviewId), onSuccess: () => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', projectId, reviewId, memberId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', projectId, reviewId, memberId] }); }, }); }