Conversation
feat: 무한 스크롤 API 수정
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. Walkthrough
Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant UI as BookSearchBottomSheet
participant Hook as useBookSearch
participant API as /books APIs
User->>UI: 스크롤 하단 도달
UI->>Hook: getLoadMoreHandler() 호출
alt 검색 모드
Hook->>API: 검색 결과 loadMore(cursor)
API-->>Hook: { items, nextCursor, isLast }
Hook-->>UI: 상태 갱신(검색)
else 저장 탭
Hook->>API: getSavedBooks(type='saved', cursor)
API-->>Hook: { bookList, nextCursor, isLast }
Hook-->>UI: savedBooks 추가 및 커서 갱신
else 그룹 탭
Hook->>API: getSavedBooks(type='joining', cursor)
API-->>Hook: { bookList, nextCursor, isLast }
Hook-->>UI: groupBooks 추가 및 커서 갱신
end
UI-->>User: 추가 아이템 렌더링
sequenceDiagram
autonumber
actor User
participant Page as SavePage
participant API as /books/saved
User->>Page: 마이페이지 열기
Page->>API: getSavedBooksInMy(cursor=null)
API-->>Page: { bookList, nextCursor, isLast }
Page-->>User: 초기 목록 렌더링
User->>Page: 마지막 아이템 뷰포트 진입(IntersectionObserver)
alt has nextCursor and not loading and not isLast
Page->>API: getSavedBooksInMy(cursor=nextCursor)
API-->>Page: { bookList(+), nextCursor', isLast' }
Page-->>User: 목록 뒤에 항목 추가
else 종료 조건
Page-->>User: 더 이상 로드 없음
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (9)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Merged
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.
이하동일
Summary by CodeRabbit