테마 설정 local storage 설정하도록 수정

This commit is contained in:
Macbook
2026-06-03 11:24:38 +09:00
parent f6ae4e6c6d
commit 5ced979212
4 changed files with 69 additions and 17 deletions
+1 -2
View File
@@ -424,7 +424,6 @@ const ChartSlot = forwardRef<ChartSlotHandle, ChartSlotProps>(function ChartSlot
symbol,
timeframe,
chartType: 'candlestick',
theme,
mode: 'normal',
logScale: false,
drawingsLocked: false,
@@ -437,7 +436,7 @@ const ChartSlot = forwardRef<ChartSlotHandle, ChartSlotProps>(function ChartSlot
}, 2000);
return () => { if (saveTimerRef.current) clearTimeout(saveTimerRef.current); };
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [slotIndex, symbol, timeframe, theme, indicators, mainChartStyle]);
}, [slotIndex, symbol, timeframe, indicators, mainChartStyle]);
// ── 동기화 콜백 refs (항상 최신 값을 참조하도록) ─────────────────────────
const onVisibleRangeChangeRef = useRef(onVisibleRangeChange);