fix: improve Firebase Data Connect performance#73
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
JuHyeong424
approved these changes
Jun 29, 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.
PR 타입
반영 브랜치
fix/performance-data-connect -> dev
변경 사항
대시보드 진입 지연 및 즐겨찾기 반응 지연 문제를 개선했습니다.
1. 대시보드 첫 진입 로딩 스피너 제거 (SSR 전환)
Firebase DataConnect는 클라이언트 전용 SDK라 앱 재시작 시마다 SDK 초기화 -> 인증 확인 -> fetch 순서를 기다려야 해서 약 300ms 이상 로딩 지연이 발생했다.
__session) 발급dashboard/page.tsx서버 컴포넌트로 전환DashboardClient.tsx신규 생성, 클라이언트 전용 로직 분리DashboardHeader.tsx@iconify/react-> 인라인 SVG 교체 (SSR HTML에 아이콘 포함)dataconnect.tsterminate()후 인스턴스 재초기화 지원/api/auth/set-session,/api/auth/clear-sessionAPI route 신규 추가2. 즐겨찾기 추가 시 즉시 다음 화면으로 이동 (fire-and-forget)
"네!" 버튼을 누르면
addBookmark완료를 기다린 후 화면이 전환되어 순간적으로 멈추는 느낌이 있었다.await제거, mutation은 백그라운드 실행3. 보관함 북마크 토글 낙관적 업데이트
별 버튼(추가/삭제)을 누르면 mutation 완료 후 UI가 바뀌어 반응이 없는 구간이 있었다.
테스트 결과 (스크린샷)