[251216] fix: panelHistoryMiddleware log
🕐 커밋 시간: 2025. 12. 16. 10:15:57 📊 변경 통계: • 총 파일: 1개 • 추가: +7줄 • 삭제: -4줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/middleware/panelHistoryMiddleware.js 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • 코드 정리 및 최적화
This commit is contained in:
@@ -106,7 +106,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const stateAfter = store.getState();
|
||||
const panelHistoryAfter = stateAfter.panelHistory;
|
||||
const panelsAfter = stateAfter.panels.panels;
|
||||
console.log('[PANEL_HISTORY] After PUSH_PANEL:', {
|
||||
console.log(`[PANEL_HISTORY] PUSH_PANEL: ${panelName}`, {
|
||||
panelHistory: panelHistoryAfter,
|
||||
panels: panelsAfter,
|
||||
});
|
||||
@@ -162,7 +162,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const stateAfter = store.getState();
|
||||
const panelHistoryAfter = stateAfter.panelHistory;
|
||||
const panelsAfter = stateAfter.panels.panels;
|
||||
console.log('[PANEL_HISTORY] After POP_PANEL:', {
|
||||
console.log(`[PANEL_HISTORY] POP_PANEL: ${topPanel.name}`, {
|
||||
panelHistory: panelHistoryAfter,
|
||||
panels: panelsAfter,
|
||||
});
|
||||
@@ -210,7 +210,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const stateAfter = store.getState();
|
||||
const panelHistoryAfter = stateAfter.panelHistory;
|
||||
const panelsAfter = stateAfter.panels.panels;
|
||||
console.log('[PANEL_HISTORY] After UPDATE_PANEL:', {
|
||||
console.log(`[PANEL_HISTORY] UPDATE_PANEL: ${panelName}`, {
|
||||
panelHistory: panelHistoryAfter,
|
||||
panels: panelsAfter,
|
||||
});
|
||||
@@ -292,7 +292,10 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const stateAfter = store.getState();
|
||||
const panelHistoryAfter = stateAfter.panelHistory;
|
||||
const panelsAfter = stateAfter.panels.panels;
|
||||
console.log('[PANEL_HISTORY] After RESET_PANELS:', {
|
||||
const resetPanelName = (action.payload && action.payload.length > 0)
|
||||
? action.payload[0].name
|
||||
: 'homepanel';
|
||||
console.log(`[PANEL_HISTORY] RESET_PANELS: ${resetPanelName}`, {
|
||||
panelHistory: panelHistoryAfter,
|
||||
panels: panelsAfter,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user