Repository navigation
[Fix/#233] 사물함 신청 직후 홈·신청내역이 바로 보이게 하기 - #234
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
github-actions
Bot
requested review from
jjunh33,
leegain1,
tnals0924 and
xeoxxn
November 17, 2026 06:33
Member
|
머지할 때 불필요한 주석 줄이고 머지해주세요~ LGTM |
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
신청내역 보기로 가면 "신청내역이 없어요"가 뜨고, 새로고침해야 배정 내역이 보였다홈으로 가기로 가면 신청 전 홈(신청 안내 카드, 배정 없음)이 잠깐 보였다가 바뀌었다❓ 왜 해결해야 하나요?
방금 신청한 사용자가 신청이 안 된 줄 알고 다시 신청하거나 문의할 수 있다.
⭐ 어떻게 해결했나요?
refetchQueries로 다시 받는데, 응답 전에 칸 선택 화면이 닫히면 TanStack Query가 요청을 취소하고 신청 전 값으로 되돌린다.refetchQueries는 무효화 표시를 남기지 않아 신청내역 화면이staleTime(1분) 동안 다시 받지 않았다useApplyLockerMutation: 내 신청 내역도invalidateQueries로 무효화해서, 취소돼도 다음 화면이 들어올 때 다시 받게 했다LockersApplyCompleteScreen홈으로 가기·닫기(X)·신청내역 보기는fetchQuery로 받기를 마친 뒤 이동한다(받는 중이면 그 요청을 같이 기다린다). 실패해도 이동해서 다음 화면이 다시 받는다ResultScreen: 두 버튼에loading을 넘길 수 있게 했다🧩 이 PR의 한계 & 트레이드오프
⛓️ 기존 기능에 미치는 영향
ResultScreen의loading은 선택 값이라, 넘기지 않는 다른 결과 화면은 그대로다🔀 Edge Case & 실패 시나리오
📋 검토한 대안과 선택 이유
💬 리뷰 포인트