fix: 레이아웃 GAM 광고 SPA 이동 시 리프레시 방지#470
Merged
Merged
Conversation
added 2 commits
March 9, 2026 20:23
- syncAuth()를 onMount 대신 스크립트 최상위에서 즉시 실행 - SSR HTML에서도 로그인 상태가 반영되어 로그인 버튼이 보이지 않음 - apiClient.setAccessToken()은 클라이언트에서만 호출 (SSR 안전)
- sidebar, panel, wing 광고를 {#if} 조건부 렌더링 대신 CSS hidden으로 변경
- AdSlot 컴포넌트가 항상 마운트되어 SPA 이동 시 destroy/recreate 안 됨
- widgetLayoutStore 상태 변경이 광고 슬롯 재생성을 유발하지 않음
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
{#if}조건부 렌더링 대신 CSShidden으로 변경원인
widgetLayoutStore.initFromServer()가$state배열을 새로 할당 →hasEnabledAds재계산 →{#if}블록 재생성 → AdSlotonDestroy→googletag.destroySlots()→ 재생성Test plan