실시간 차트 갱신오류 수정
This commit is contained in:
@@ -141,7 +141,7 @@ export function useStompChartData(
|
||||
.then(newBars => {
|
||||
if (cancelled) return;
|
||||
barsRef.current = newBars;
|
||||
historyReadyRef.current = newBars.length > 0;
|
||||
historyReadyRef.current = true;
|
||||
setBarsMarket(market);
|
||||
setBars(newBars);
|
||||
setLatestBar(newBars[newBars.length - 1] ?? null);
|
||||
@@ -269,6 +269,9 @@ export function useStompChartData(
|
||||
last1mVolRef.current = 0;
|
||||
last1mTimeRef.current = 0;
|
||||
void pinChartWatch(market, STOMP_TICK_CANDLE_TYPE);
|
||||
if (candleType !== STOMP_TICK_CANDLE_TYPE) {
|
||||
void pinChartWatch(market, candleType);
|
||||
}
|
||||
|
||||
const topic = `/sub/charts/${market}/${STOMP_TICK_CANDLE_TYPE}`;
|
||||
let alive = true;
|
||||
|
||||
Reference in New Issue
Block a user