서버 차트로딩중 오류 수정
This commit is contained in:
@@ -994,13 +994,9 @@ const TradingChart: React.FC<TradingChartProps> = ({
|
||||
}
|
||||
const m = managerRef.current;
|
||||
if (m?.hasMainSeries()) {
|
||||
// 지표 일부만 로드된 경우에도 메인 캔들은 준비됨 — 실시간 틱 허용
|
||||
// 메인 캔들만 준비되어도 paint·실시간 틱 허용 (지표는 백그라운드 복구)
|
||||
setChartPaintReady(true);
|
||||
onCandlesReady?.();
|
||||
const expected = countExpectedVisibleIndicators(indicatorsRef.current);
|
||||
const loaded = m.getLoadedIndicatorCount();
|
||||
if (expected === 0 || loaded >= expected) {
|
||||
setChartPaintReady(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [normalizeChartViewport, onCandlesReady, onDataLoaded, displayTimezone, timeframe, market, queueFullReload, queueIndicatorRecovery]);
|
||||
|
||||
Reference in New Issue
Block a user