-
Notifications
You must be signed in to change notification settings - Fork 4
fix: 랜딩페이지 렌더링 이슈 해결 #304
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
fix: 랜딩페이지 렌더링 이슈 해결 #304
Conversation
Walkthrough이 PR은 Changes
Sequence Diagram(s)sequenceDiagram
participant LP as LandingPage
participant M as Member
participant GC as GameContent Item
LP->>M: member?.id 확인
alt Member 존재
LP->>GC: item.writerId와 member.id 비교
note right of GC: showBookmark = (item.writerId !== member.id)
else Member 미존재
note right of GC: showBookmark = false
end
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/pages/LandingPage/LandingPage.tsx (1)
92-116: 에러 메시지를 더 구체적으로 개선하면 좋겠습니다.현재 구현은 잘 되어 있지만, 에러 메시지를 좀 더 구체적으로 만들면 사용자 경험이 개선될 것 같습니다.
다음과 같이 에러 메시지를 개선하는 것을 제안합니다:
- showToastModal('북마크 해제에 실패했습니다.'); + showToastModal('일시적인 오류로 북마크 해제에 실패했습니다. 잠시 후 다시 시도해 주세요.'); - showToastModal('북마크 등록에 실패했습니다.'); + showToastModal('일시적인 오류로 북마크 등록에 실패했습니다. 잠시 후 다시 시도해 주세요.');
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/pages/LandingPage/LandingPage.tsx(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: build
- GitHub Check: storybook
🔇 Additional comments (1)
src/pages/LandingPage/LandingPage.tsx (1)
65-70: 북마크 표시 로직이 개선되었습니다!비로그인 사용자와 로그인 사용자 모두에 대해 북마크 표시 여부가 명확하게 처리되었습니다. 삼항 연산자를 사용하여 코드가 간결해졌으며, 의도가 잘 드러납니다.
alwubin
left a comment
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.
큰 보수가 안들어서 다행이네요..!!!!! 수정하시느라 수고 많으셨습니다👏
areumH
left a comment
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.
렌더링 이슈 해결 확인했습니다!! 👍👍👍
|



💡 작업 내용
💡 자세한 설명
✅ 문제 원인
useBestGameList또는useLatestGameList으로 받아온 데이터는 contents 라는 이름으로 메모이제이션 합니다.이 때, 컴포넌트 에서 북마크 아이콘을 출력/미출력 을 위해
processedContents라는 이름으로 2차 가공을 진행하는데,(기존)
와 같이 member의 id가 없으면 빈 배열을 반환하도록 되어 있었습니다.
원래 의도한 흐름(비로그인 시에는 북마크 아이콘이 랜더링 X, 로그인 시에는 writer.id와의 검증을 통해서)
(수정 후)
로 처리하였습니다.
📗 참고 자료 (선택)
📢 리뷰 요구 사항 (선택)
🚩 후속 작업 (선택)
✅ 셀프 체크리스트
closes #303
Summary by CodeRabbit