-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: tanstack-query 적용 #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
정말 고생하셨습니다!
저도 덕분에 공부 많이 됐습니다 최고!
src/constants/ROUTES.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 좋은 것 같습니다 👍
src/constants/QUERY_KEYS.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
객체로 queryKey 관리하는 걸 권장한다고 하는데 좋은 것 같습니다!
🔗 연관된 이슈 번호
resolve #113
✨ 어떤 기능을 개발했나요?
이전에 쓰기로 했던 tanstack-query (구 react-query)를 적용했습니다
✅ 어떻게 해결했나요?
/constants/QUERY_KEYS.ts
query key들을 constant로 저장합니다/api
query function - api 호출 함수들을 저장합니다/queries
커스텀 훅을 제작하여 useQuery 혹은 useMutation을 리턴합니다📌 어떤 부분에 집중하여 리뷰해야 할까요?
api 호출하는 모든 부분을 바꿔 놓았는데 이해 안 가시는 부분 있으면 말씀해 주세요