code-review-fix task 12.8: add candles to useImperativeHandle dependency array in CandleChart

This commit is contained in:
Marko Djordjevic 2026-02-18 20:40:40 +01:00
parent 2d8222740c
commit a55cbab84f

View file

@ -233,7 +233,7 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
if (typeof from !== 'number' || typeof to !== 'number') return candles;
return candles.filter((c) => c.time >= from && c.time <= to);
},
}));
}), [candles]);
// Get theme-specific colors
const getChartColors = () => {