Skip to content

Commit

Permalink
Feat: query, mutation 관리하는 상수 파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
navyjeongs committed Jan 17, 2024
1 parent b4e6d97 commit 1f721c5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/constants/queryManagement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { fetchMyPageWithSSR, sendEmailVerification } from '@apis/mypage';

const QUERY_MANAGEMENT = {
mypage: {
queryKey: 'mypage',
queryFn: fetchMyPageWithSSR,
},
};

const MUTATION_MANAGEMENT = {
email: {
mutateKey: 'sendEmail',
mutateFn: (email: string) => sendEmailVerification(email),
},
};

export { QUERY_MANAGEMENT, MUTATION_MANAGEMENT };

0 comments on commit 1f721c5

Please sign in to comment.