From 38b1fe6ea46672e6b278ffdf69e9eb3cd200aa40 Mon Sep 17 00:00:00 2001 From: hae-on Date: Sun, 15 Oct 2023 21:15:28 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20query=20key=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/queries/review/useReviewDetailQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/queries/review/useReviewDetailQuery.ts b/frontend/src/hooks/queries/review/useReviewDetailQuery.ts index 60675ccd6..a80914053 100644 --- a/frontend/src/hooks/queries/review/useReviewDetailQuery.ts +++ b/frontend/src/hooks/queries/review/useReviewDetailQuery.ts @@ -10,7 +10,7 @@ const fetchReviewDetail = async (reviewId: number) => { }; const useReviewDetailQuery = (reviewId: number) => { - return useSuspendedQuery(['review'], () => fetchReviewDetail(reviewId)); + return useSuspendedQuery(['review', reviewId, 'detail'], () => fetchReviewDetail(reviewId)); }; export default useReviewDetailQuery;