[251025] feat: usePanelHistory && panelHistoryMiddleware
🕐 커밋 시간: 2025. 10. 25. 09:46:43 📊 변경 통계: • 총 파일: 8개 • 추가: +195줄 • 삭제: -84줄 📁 추가된 파일: + com.twin.app.shoptime/src/actions/panelNavigationActions.js 📝 수정된 파일: ~ com.twin.app.shoptime/src/App/App.js ~ com.twin.app.shoptime/src/actions/panelHistoryActions.js ~ com.twin.app.shoptime/src/hooks/usePanelHistory/usePanelHistory.js ~ com.twin.app.shoptime/src/middleware/panelHistoryMiddleware.js ~ com.twin.app.shoptime/src/reducers/panelHistoryReducer.js ~ com.twin.app.shoptime/src/views/HomePanel/BestSeller/BestSeller.jsx ~ com.twin.app.shoptime/src/views/SearchPanel/SearchResultsNew/ItemCard.jsx 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • 중간 규모 기능 개선 • 모듈 구조 개선
This commit is contained in:
@@ -42,6 +42,7 @@ import { getShoptimeTerms } from '../actions/empActions';
|
||||
import { getHomeMenu, getHomeTerms } from '../actions/homeActions';
|
||||
import { getMyRecommandedKeyword, getMyUpcomingAlertShow } from '../actions/myPageActions';
|
||||
import { pushPanel } from '../actions/panelActions';
|
||||
import { enqueuePanelHistory } from '../actions/panelHistoryActions';
|
||||
import NotSupportedVersion from '../components/NotSupportedVersion/NotSupportedVersion';
|
||||
import ToastContainer from '../components/TToast/ToastContainer';
|
||||
import usePrevious from '../hooks/usePrevious';
|
||||
@@ -387,6 +388,17 @@ function AppBase(props) {
|
||||
console.log('[App.js] initService,httpHeaderRef.current', httpHeaderRef.current);
|
||||
console.log('[App.js] haveyInit', haveyInit);
|
||||
|
||||
// 앱 초기화 시 HomePanel 자동 기록
|
||||
console.log('[App.js] Recording initial HomePanel on app start');
|
||||
dispatch(enqueuePanelHistory(
|
||||
'homepanel',
|
||||
{},
|
||||
'APP_INITIALIZE',
|
||||
new Date().toISOString(),
|
||||
false, // fromGNB: false (앱 초기화)
|
||||
false // fromResetPanel: false (앱 초기화)
|
||||
));
|
||||
|
||||
if (httpHeaderRef.current) {
|
||||
if (haveyInit) {
|
||||
dispatch(changeAppStatus({ connectionFailed: false }));
|
||||
|
||||
Reference in New Issue
Block a user