데스크톱 앱 실시간 차트 리프레시 무한로딩 수정

This commit is contained in:
Macbook
2026-06-22 17:46:16 +09:00
parent 5871eb2465
commit 351c5600b8
2 changed files with 16 additions and 1 deletions
+8 -1
View File
@@ -407,7 +407,14 @@ const TradingChart: React.FC<TradingChartProps> = ({
}, [chartVisible]);
useEffect(() => {
if (dataLoading) setChartPaintReady(false);
if (!dataLoading) return;
setChartPaintReady(false);
// refresh 후 동일 barsKey면 reloadAll이 스킵되어 paint가 영구 false — 키 초기화
prevBarsKey.current = '';
prevIndKey.current = '';
reloadGenRef.current += 1;
reloadInFlightRef.current = false;
reloadCoalesceRef.current = false;
}, [dataLoading]);
useEffect(() => {