feat: 추천 맛집(찜많은 맛집, 오늘의 맛집) 에러 바운더리 따로 설정#98
Conversation
📋 개요WalkthroughRankingSection 컴포넌트에 에러 처리 및 빈 상태 UI를 추가했습니다. ErrorBoundary로 목록 조회를 감싸고, Suspense를 그 안에 배치하며, 데이터가 없을 때와 에러 발생 시를 위한 전용 폴백 컴포넌트를 추가했습니다. Changes
🔗 관련 가능성 있는 PR
⏱️ 예상 코드 리뷰 소요 시간🎯 3 (Moderate) | ⏱️ ~20 minutes 🐰 축하 시
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! 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. Comment |
#️⃣연관된 이슈
📝작업 내용
메인 페이지의 랭킹 섹션(RankingSection) 에서 데이터 로딩 중 에러가 발생하더라도, 페이지 전체가 중단되지 않고 안정적으로 동작하도록 에러 핸들링 및 예외 처리 로직을 추가했습니다.
1. ErrorBoundary 도입
RankingSection 내부 데이터 페칭 영역에 ErrorBoundary를 적용하여 에러 전파 범위를 해당 섹션으로 한정했습니다.
랭킹 API가 실패하더라도 해당 영역에만 Fallback UI를 노출하고, 카테고리 조회 등 페이지의 나머지 기능은 정상적으로 사용할 수 있도록 개선했습니다.
2. 데이터 공백 상태 처리
EmptyFallback을 활용하여 데이터는 성공적으로 불러왔으나 리스트가 비어있는 경우에 대한 처리도 함께 적용되었습니다
스크린샷 (선택)
💬리뷰 요구사항(선택)
Summary by CodeRabbit
릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings.