[251118] feat: HomePanel Detailpanel에서 복귀 감지
🕐 커밋 시간: 2025. 11. 18. 04:17:51 📊 변경 통계: • 총 파일: 2개 • 추가: +33줄 • 삭제: -1줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx ~ com.twin.app.shoptime/src/views/HomePanel/HomePanel.jsx 🔧 주요 변경 내용: • 소규모 기능 개선
This commit is contained in:
@@ -758,6 +758,21 @@ const HomePanel = ({ isOnTop }) => {
|
||||
console.log('[HomeActive] 재생 기록 업데이트:', bannerId);
|
||||
}, [isOnTop, dispatch]);
|
||||
|
||||
// ✅ [251118] DetailPanel 닫힘 감지 useEffect
|
||||
const detailPanelClosedTime = useSelector(
|
||||
(state) => state.home.homeInfo?.panelInfo?.lastDetailPanelClosed
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (detailPanelClosedTime && isOnTop) {
|
||||
console.log('[HomePanel] ✅ DetailPanel 닫힘 감지됨!');
|
||||
console.log('[HomePanel] lastDetailPanelClosed:', detailPanelClosedTime);
|
||||
console.log('[HomePanel] isOnTop:', isOnTop);
|
||||
console.log('[HomePanel] videoPlayIntentRef.current:', videoPlayIntentRef.current);
|
||||
console.log('[HomePanel] lastPlayedBannerIdRef.current:', lastPlayedBannerIdRef.current);
|
||||
}
|
||||
}, [detailPanelClosedTime, isOnTop]);
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
const c = Spotlight.getCurrent();
|
||||
|
||||
Reference in New Issue
Block a user