refactor: 공통 API layer 강화 및 프로필·리뷰 TanStack Query 구조 정리#85
Closed
MintPansy wants to merge 6 commits into
Closed
Conversation
Contributor
Author
|
API layer는 #90 등으로 develop에 반영됨. 브랜치 구조가 달라 재머지 비용이 커서 이 PR은 닫습니다. |
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.
📝 개요
공통 API 호출(
/api/v1, access token, URL 조립, 응답{ data }처리)을shared/lib/api로 정리하고, MSW 핸들러를 동일 계약에 맞게 조정했습니다. 이어서 미구현이었던 리뷰 공감(리액션) 코드를 제거하고, 프로필·리뷰 영역의 TanStack Query(queryKey, 무효화 헬퍼 등)를 정돈했습니다.커밋 근거
eec82c7— 공통 API layer 및 fetcher·MSW 정렬c620983— 공감 제거, 프로필·리뷰 쿼리/뮤테이션 구조 정리 및throwNotImplemented헬퍼 추가※ 로그인 직후 앱 트리에 프로필 쿼리를 붙이는 작업(캐싱 3단계)은 포함하지 않습니다.
🔗 관련 이슈
🛠️ 변경 사항 (Checklist)
✅ 아래 내용을 한 번 더 점검해 주세요
1. 의도와 가독성 (Naming & Readability)
2. 타입과 논리 (Type Safety & Logic)
ApiError등 클라이언트 측)3. 코드 다이어트 (Clean-up)
4. 지속 가능성 (Sustainability)
💭 회고 (Optional)
백엔드에 없는 엔드포인트는 제거하고
shared/lib/not-implemented.ts로 “잘못된 확장” 방지 패턴을 두었습니다. 프로필 prefetch·enabled전략은 다음 PR에서 다룹니다.