Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. Walkthrough정적 버스 데이터를 React Query 기반의 동적 페칭으로 전환합니다. API 클라이언트 인프라를 추가하고, App 컴포넌트를 AppContent로 리팩토링하며, Bus.direction 타입을 string에서 boolean으로 변경합니다. Changes
시퀀스 다이어그램sequenceDiagram
participant User as 사용자
participant App as App
participant AppContent as AppContent
participant MapContainer as MapContainer
participant Bus API as useBusLocations<br/>(React Query)
participant Server as 서버
App->>AppContent: render with props
AppContent->>Bus API: useBusLocations 초기화
Bus API->>Server: GET api/shuttle/location
Server-->>Bus API: Bus[]
Bus API-->>AppContent: buses 반환
AppContent->>MapContainer: buses 전달
MapContainer->>MapContainer: useMapOverlays(buses)
Note over Bus API: 20초마다 자동 리페칭
Bus API->>Server: GET api/shuttle/location (재페칭)
Server-->>Bus API: 업데이트된 Bus[]
Bus API-->>MapContainer: 새 버스 데이터
MapContainer->>MapContainer: 오버레이 업데이트
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~35 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
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 |
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 by CodeRabbit
릴리스 노트
새로운 기능
개선사항