Uh oh!
There was an error while loading. Please reload this page.
🐛 대학 상세페이지 진입 실패 시 전역 에러 토스트가 중복 표시되던 문제 수정 - #628
Merged
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughEstimated code review effort: 2 (Simple) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
문제
대학 상세페이지(
/university/:homeUniversity/:id) 진입 시 데이터 조회에 실패하면, 화면에는 "대학 정보를 준비중입니다" 같은 안내가 정상적으로 뜨는데 동시에 전역 에러 토스트("오류가 발생했습니다. 다시 시도해주세요.")까지 함께 표시됩니다.원인
#623에서 추가된 CSR 폴백(
UniversityDetailCsrFallback)이useGetUniversityDetail훅(react-query)을 쓰는데,apps/university-web의 전역QueryCache.onError(queryClient.ts)는meta.skipGlobalErrorToast가 없는 모든 쿼리 실패에 토스트를 띄웁니다. 이 훅에는 그 메타가 없어서, 폴백 UI가 실패를 이미 부드럽게 안내하고 있는데도 토스트가 중복으로 얹혔습니다.useGetUniversityDetail은 저장소 전체에서 이 CSR 폴백 한 곳에서만 쓰입니다 — 정확히 "대학 상세페이지 진입 실패" 시나리오입니다.수정
useGetUniversityDetail의useQuery옵션에meta: SKIP_GLOBAL_ERROR_TOAST_META를 추가했습니다.apps/university-web에 이미 있는 기존 패턴(postUploadProfileImage.ts등)을 그대로 따랐습니다.화면에 보이는 안내(
UniversityDetailPreparingFallback)는 그대로 유지되고, 중복 토스트만 사라집니다.검증
pnpm --filter @solid-connect/university-web run lint:check— 321 files 통과pnpm --filter @solid-connect/university-web run typecheck:ci— 통과meta→query.meta→shouldSkipGlobalErrorToast로 이어지는 경로를 코드로 재확인범위 밖 (참고)
같은 페이지의 목록 CSR 폴백(
UniversityListCsrFallback)도 인라인useQuery로 동일한 전역 토스트 문제를 가질 수 있습니다. 다만 이번 요청 범위(상세페이지)에 맞춰 이 PR에는 포함하지 않았습니다. 필요하시면 별도 PR로 처리하겠습니다.🤖 Generated with Claude Code