Skip to content

Commit

Permalink
refactor: query key 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hae-on committed Oct 15, 2023
1 parent eceaf7a commit 38b1fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/queries/review/useReviewDetailQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 38b1fe6

Please sign in to comment.