frontend 속도 개선

This commit is contained in:
Macbook
2026-06-11 00:14:14 +09:00
parent 0ff1992b64
commit 54fdc3e77a
15 changed files with 522 additions and 71 deletions
+3 -1
View File
@@ -1175,6 +1175,8 @@ export function useChartWorkspace({
// ── Watchlist 가격 맵 ──────────────────────────────────────────────────
const priceMap = useMemo(() => {
// 시세 패널이 열려 있고 ticker가 활성 상태일 때만 계산 (데모 심볼용)
if (!showMarketPanel || !tickerFeedActive) return {} as Record<string, { price: number; changePct: number }>;
const map: Record<string, { price: number; changePct: number }> = {};
for (const sym of watchlist) {
const b = isUpbitMarket(sym) ? [] : generateBars(sym, '1D');
@@ -1183,7 +1185,7 @@ export function useChartWorkspace({
}
}
return map;
}, [watchlist]);
}, [watchlist, showMarketPanel, tickerFeedActive]);
// ── DB 워크스페이스 동기화 ─────────────────────────────────────────────