Repository navigation
[FIX] 요청 취소(AbortError)를 API 오류로 기록해 개발 모드에서 Next.js 오류 화면이 뜨는 문제 (#227) - #228
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. Walkthrough
ChangesAPI 요청 오류 처리
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to 요청 취소 오류는 그대로 전달되고 일반 오류 처리는 유지됩니다. 확인된 변경 범위에서 병합을 막을 구체적인 위험은 없습니다. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
778b553 to
3cd9475
Compare
관련 이슈
closes #227
변경 사항
apiRequest의catch에서 요청 취소(DOMExceptionAbortError)는 기록 없이 원래 오류 그대로 다시 던짐console.error("💥 API Error")를 남기지 않음 → Next.js 개발 오류 화면이 뜨지 않음NETWORK_ERROR로 바꾸지 않음 → React Query가 취소로 인식하는 원래 오류가 그대로 전달됨리뷰어 참고 사항
signal을 넘기면서 생깁니다(조건 변경 재조회·화면 이탈·개발 모드 StrictMode의 다시 마운트). React Query는 이미 정상 흐름으로 처리해 화면 동작에는 영향이 없었고, 이 PR은 기록만 바꿉니다NODE_ENV === "development"에서만 찍혀 배포 환경 사용자에게는 영향이 없습니다추가 정보
검증
pnpm exec tsc --noEmit통과 ·pnpm test295개 통과 ·pnpm build통과🤖 Generated with Claude Code
Summary by CodeRabbit