From a55cbab84f64b649a297b916f1023ba6a5193ac8 Mon Sep 17 00:00:00 2001 From: Marko Djordjevic Date: Wed, 18 Feb 2026 20:40:40 +0100 Subject: [PATCH] code-review-fix task 12.8: add candles to useImperativeHandle dependency array in CandleChart --- src/components/CandleChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CandleChart.tsx b/src/components/CandleChart.tsx index e8759f8..d3605f5 100644 --- a/src/components/CandleChart.tsx +++ b/src/components/CandleChart.tsx @@ -233,7 +233,7 @@ const CandleChart = forwardRef( 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 = () => {