[SHOPTIME-3604] Home > Live 진입 후 [back] 버튼 > 다시 Home으로 진입 시 화면 이슈
1. actionTypes.js 2. homeActions.js 3. TabLayout.jsx 4. homeReducer.js 5. HomePanel.jsx 6. RandomUnit.jsx 7. RollingUnit.jsx 8. MainView.jsx - 원인: 기존의 panel 구조로는 Player를 Full로 시청할 경우 Home관련 elements가 삭제되어 결국 다시 mount 되는 것이 원인 - 대책: panel 구조 변경
This commit is contained in:
@@ -9,8 +9,10 @@ import React, {
|
||||
import classNames from "classnames";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
|
||||
import Spotlight from "@enact/spotlight";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
import { getContainerId } from "@enact/spotlight/src/container";
|
||||
|
||||
import btnPlay from "../../../../assets/images/btn/btn-play-thumb-nor.png";
|
||||
import defaultLogoImg from "../../../../assets/images/ic-tab-partners-default@3x.png";
|
||||
@@ -26,7 +28,6 @@ import CustomImage from "../../../components/CustomImage/CustomImage";
|
||||
import usePriceInfo from "../../../hooks/usePriceInfo";
|
||||
import { LOG_MENU, LOG_TP_NO, panel_names } from "../../../utils/Config";
|
||||
import { $L, formatGMTString } from "../../../utils/helperMethods";
|
||||
|
||||
import css from "./RollingUnit.module.less";
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
@@ -386,6 +387,17 @@ export default function RollingUnit({
|
||||
]);
|
||||
|
||||
const videoClick = useCallback(() => {
|
||||
const lastFocusedTargetId = getContainerId(Spotlight.getCurrent());
|
||||
|
||||
if (lastFocusedTargetId) {
|
||||
dispatch(
|
||||
updateHomeInfo({
|
||||
name: panel_names.HOME_PANEL,
|
||||
panelInfo: { lastFocusedTargetId },
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
if (bannerId) {
|
||||
dispatch(setBannerIndex(bannerId, startIndex));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user