Skip to content

Commit

Permalink
Feat: 마이페이지 불러오는 query 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
navyjeongs committed Jan 18, 2024
1 parent 3b8c538 commit be4781c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/hooks/query/useMyPageQuery.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { QUERY_MANAGEMENT } from '@constants/queryManagement';
import { useSuspenseQuery } from '@tanstack/react-query';

const useMyPageQuery = () => {
const { data, refetch } = useSuspenseQuery({
queryKey: [QUERY_MANAGEMENT.mypage.queryKey],
queryFn: QUERY_MANAGEMENT.mypage.queryFn,
});

return { data, refetch };
};

export default useMyPageQuery;

0 comments on commit be4781c

Please sign in to comment.