Merged
Conversation
- waiting-queue, reservations 페이지 각각의 체류시간 측정 및 저장 - sessionStorage에 저장 - result 페이지에 사용
- SelectedSeats를 동적으로 임포트 - `ssr: false` 옵션 설정하여 빌드 시점에 서버에서 실행되지 않고 브라우저(클라이언트)에서만 실행
shininghyunho
approved these changes
Jan 15, 2026
- build 오류 해결을 위한 임시 설정
- 요청의 응답(대기 순번)을 확인하여 폴링이 필요한 경우에만 `setTimeout`으로 다음 `poll`을 호출하도록 수정
flowersayo
approved these changes
Jan 15, 2026
viixix
approved these changes
Jan 15, 2026
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.
🧭 Summary
🔗 Linked Issue
Closes: #32
🛠 개발 기능(작업 내용)
/waiting-queue)와 좌석 예매 페이지(/reservations) 각각의 체류 시간을 측정/result)의 '단계별 소요 시간' UI에 초 단위로 출력🧩 주요 고민과 해결 방법
1. 페이지 이동 및 새로고침 시 상태 유지
문제: 여러 페이지에 걸쳐 진행되는 작업의 단계별 소요 시간을 어떻게 유지하고 계산할 것인가.
배경: 결과 페이지에서 단계별 소요 시간을 보여줘야 했다. 여기서 ‘소요 시간’은 각 페이지에 사용자가 머문 체류 시간으로 정의하였다. 문제는 사용자가 대기열 페이지나 좌석 예매 페이지에서 새로고침을 하는 경우였다. 실제 예매 플랫폼의 동작을 확인해 보니, 새로고침 시 예매 프로세스가 초기 단계(대기열)로 되돌아가는 방식을 취하고 있었다. 따라서 본 프로젝트에서도 예매 중 새로고침이 발생하더라도:
해결 과정: 데이터 유지 방안으로 다음 두 가지를 고려하였다.
Provider 패턴을 통한 전역 상태 관리
sessionStorage를 이용한 데이터 저장* 기존 로직을 크게 변경하지 않고도
* 새로고침 및 URL 이동 시에도 데이터 유지 가능
* 단점: React state와 브라우저 저장소(sessionStorage)가 분리되어 관리되어 상태 관리가 다소 분산됨
최종 해결: React의 state는 새로고침 시 초기화된다는 한계를 고려하여, 브라우저 세션 동안 데이터가 유지되는
sessionStorage를 채택하였다. 이를 통해:2. React Strict Mode에서의 버그
🔍 리뷰 포인트
현재 프로젝트에서 적용한 TanStack Query 사용 방법이 권장 패턴에 부합하는지, 더 나은 구조나 개선할 수 있는 부분이 있는지 검토 부탁드립니다.
📋 Code Review Priority Guideline