-
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
refactor: mypage에도 prefetchQuery적용, design : 홈 캐러셀 글자 문구, 디자인 수정 #415
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.
고생하셨습니다~
export const fetchAllCategories = async (): Promise<FetchCategoryResponse> => { | ||
export const fetchAllCategories = async ( | ||
customHeaders?: Record<string, string>, | ||
): Promise<FetchCategoryResponse> => { | ||
return apiClient<FetchCategoryResponse>('/categories/all', { |
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.
폐기된 api 같아요~
리딩 리스닝 나뉘어서요!
await Promise.allSettled([ | ||
queryClient.prefetchQuery({ | ||
queryKey: ['user'], | ||
queryFn: () => fetchUserInfo({ Cookie: cookieHeader }), | ||
}), | ||
queryClient.prefetchQuery({ | ||
queryKey: ['categories'], | ||
queryFn: () => fetchAllCategories({ Cookie: cookieHeader }), | ||
}), | ||
]); |
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.
에러 처리 되어 있는지 확인해주세요~
📄 Description of the PR
기능 설명 : refactor: mypage에도 prefetchQuery적용, design : 홈 캐러셀 글자 문구, 디자인 수정
Close [refactor] apply prefetchQuery on mypage #414
refactor : 마이페이지에도 prefetchQuery적용
design : 홈 캐러셀 글자 문구, 디자인 수정
🔧 What has been changed?
📸 Screenshots / GIFs (if applicable)
✅ Checklist