[SHOPTIME-3763] Homebanner / Hot Picks 최상단 랜딩 후 앱 튕김 현상
수정 내용: 잘못된 curationID로 딥링크를 통해 핫픽스 유입 시 일반 핫픽스 유입과 동일한 로직으로 작동하도록 수정함
This commit is contained in:
@@ -351,16 +351,16 @@ function AppBase(props) {
|
||||
}, [dispatch]);
|
||||
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<MainView
|
||||
className={
|
||||
typeof window === "object" &&
|
||||
!window.PalmSystem &&
|
||||
!cursorVisible &&
|
||||
css.preventMouse
|
||||
}
|
||||
/>
|
||||
</ErrorBoundary>
|
||||
// <ErrorBoundary>
|
||||
<MainView
|
||||
className={
|
||||
typeof window === "object" &&
|
||||
!window.PalmSystem &&
|
||||
!cursorVisible &&
|
||||
css.preventMouse
|
||||
}
|
||||
/>
|
||||
// </ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -142,6 +142,7 @@ let localLaunchParams = {
|
||||
// contentTarget: "V3_2000_HOMEBANNER:TOP_MT_1",
|
||||
// contentTarget: "V3_3000_AD:TM_TM_8",
|
||||
// contentTarget: "V3_3000_AD:SR_SR_1",
|
||||
contentTarget: "V3_2006_HOMEBANNER:6241018_HP_1_1307_2",
|
||||
};
|
||||
|
||||
export const getLaunchParams = () => {
|
||||
|
||||
@@ -28,7 +28,7 @@ class ErrorBoundary extends Component {
|
||||
|
||||
render() {
|
||||
if (this.state.hasError) {
|
||||
return <div>Something went wrong.</div>;
|
||||
return <div></div>;
|
||||
}
|
||||
|
||||
return this.props.children;
|
||||
|
||||
@@ -17,6 +17,7 @@ import Spottable from "@enact/spotlight/Spottable";
|
||||
import { clearSMS } from "../../actions/appDataActions";
|
||||
import {
|
||||
alertToast,
|
||||
changeAppStatus,
|
||||
setHidePopup,
|
||||
setShowPopup,
|
||||
} from "../../actions/commonActions";
|
||||
@@ -24,7 +25,6 @@ import {
|
||||
clearGetProductCouponDownload,
|
||||
getProductCouponDownload,
|
||||
} from "../../actions/couponActions";
|
||||
import { changeAppStatus } from "../../actions/commonActions";
|
||||
import { setEventIssueReq } from "../../actions/eventActions";
|
||||
import { getThemeCurationInfo } from "../../actions/homeActions";
|
||||
import {
|
||||
@@ -99,7 +99,9 @@ const HotPicksPanel = ({ panelInfo, isOnTop, spotlightId }) => {
|
||||
const themeCurationInfoDataRetCode = useSelector(
|
||||
(state) => state.home?.themeCurationInfoDataCode
|
||||
);
|
||||
const showLoadingPanel = useSelector((state) => state.common.appStatus.showLoadingPanel);
|
||||
const showLoadingPanel = useSelector(
|
||||
(state) => state.common.appStatus.showLoadingPanel
|
||||
);
|
||||
const themeCurationInfoDataRef = usePrevious(themeCurationInfoData);
|
||||
|
||||
const { popupVisible, activePopup } = useSelector(
|
||||
@@ -279,7 +281,9 @@ const HotPicksPanel = ({ panelInfo, isOnTop, spotlightId }) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (components.length <= 0) {
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: true, type: "wait" } }));
|
||||
dispatch(
|
||||
changeAppStatus({ showLoadingPanel: { show: true, type: "wait" } })
|
||||
);
|
||||
}
|
||||
dispatch(getThemeCurationInfo());
|
||||
}, [dispatch]);
|
||||
@@ -290,7 +294,7 @@ const HotPicksPanel = ({ panelInfo, isOnTop, spotlightId }) => {
|
||||
setLoading(showLoadingPanel.show);
|
||||
}, 100);
|
||||
}, [dispatch, showLoadingPanel]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
themeCurationInfoData &&
|
||||
@@ -342,18 +346,29 @@ const HotPicksPanel = ({ panelInfo, isOnTop, spotlightId }) => {
|
||||
item.patnrId === panelInfo.patnrId
|
||||
);
|
||||
|
||||
props = {
|
||||
...props,
|
||||
linkTpCd: panelInfo.linkTpCd,
|
||||
curationId: matchData[0].curationId,
|
||||
patnrId: matchData[0].patnrId,
|
||||
curationNm: matchData[0].curationNm,
|
||||
expsOrd: String(matchData[0].expsOrd),
|
||||
patncNm: matchData[0].patncNm,
|
||||
};
|
||||
if (matchData.length > 0) {
|
||||
props = {
|
||||
...props,
|
||||
linkTpCd: panelInfo.linkTpCd,
|
||||
curationId: matchData[0].curationId,
|
||||
patnrId: matchData[0].patnrId,
|
||||
curationNm: matchData[0].curationNm,
|
||||
expsOrd: String(matchData[0].expsOrd),
|
||||
patncNm: matchData[0].patncNm,
|
||||
};
|
||||
|
||||
saveCuration = panelInfo.curationId;
|
||||
savePatnrId = panelInfo.patnrId;
|
||||
saveCuration = panelInfo.curationId;
|
||||
savePatnrId = panelInfo.patnrId;
|
||||
} else {
|
||||
props = {
|
||||
...props,
|
||||
curationId: curationId,
|
||||
curationNm: curationNm,
|
||||
expsOrd: String(expsOrd),
|
||||
patncNm: patncNm,
|
||||
patnrId: patnrId,
|
||||
};
|
||||
}
|
||||
} else {
|
||||
//딥링크 안탈때
|
||||
props = {
|
||||
|
||||
Reference in New Issue
Block a user