서버 차트로딩중 오류 수정

This commit is contained in:
Macbook
2026-06-12 22:31:02 +09:00
parent 9e4d24ee2a
commit b55349062f
3 changed files with 8 additions and 10 deletions
+4 -1
View File
@@ -145,7 +145,10 @@ export function useStompChartData(
/** 백엔드 history 비어 있을 때 STOMP 누적 → React bars 동기화 */
const bootstrapFromStompRef = useRef(false);
useEffect(() => {
if (opts.enabled === false) return;
if (opts.enabled === false) {
setIsLoading(false);
return;
}
let cancelled = false;
historyReadyRef.current = false;
bootstrapFromStompRef.current = false;