실시간 차트 갱신오류 수정

This commit is contained in:
Macbook
2026-05-25 03:49:53 +09:00
parent 3b67fca4ee
commit 67a6aa0dee
5 changed files with 183 additions and 97 deletions
+2 -5
View File
@@ -1092,11 +1092,8 @@ function App() {
noAutoSave: !dbLoaded,
});
/** 로그인·로그아웃·종목·타임프레임 변경 시 차트 재마운트 (종목 전환 직후 stale 데이터·중단된 reload 방지) */
const chartMountKey = useMemo(
() => `${sessionKey}:${symbol}:${timeframe}`,
[sessionKey, symbol, timeframe],
);
/** 로그인·로그아웃 시에만 차트 재마운트 (종목·타임프레임은 TradingChart 내부 reloadAll로 처리) */
const chartMountKey = useMemo(() => sessionKey, [sessionKey]);
// DB에 워크스페이스 없음(204) → appDefaults 레이아웃 적용 후 저장 허용
useEffect(() => {