[DP-441] 마이페이지 추천 3종 실제 API 연동 및 myPage.ts 분리#121
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
연결된 Jira 티켓
작업 내용
lib/api/endpoints/myPage.ts로 분리주요 변경점
lib/api/endpoints/myPage.ts신규 생성:MY_PAGE_QUERY_KEYS,getRecommendContents,getRecommendYoutube,getRecommendBooksRecommendedSection.tsx: 추천 3종 모두useQuery로 교체,useEffect/useState제거RecommendedHomePostList.tsx/RecommendedVideoList.tsx/RecommendedBookList.tsx: 동일 query key로useQuery교체 → Section과 캐시 공유, 중복 호출 없음isPersonalized: false시message필드 빈 상태 UI 표시 (DP-415 대응)lib/mock/my-page-recommend-home.ts/my-page-recommend-video.ts/my-page-recommend-book.ts삭제테스트 방법
/my-page/recommend/home|video|book) 진입 시 중복 API 호출 없이 캐시 사용 확인AI 사용 여부
체크리스트