Skip to content

Commit be93f88

Browse files
committed
fix: dependency array for path computation
1 parent e531ab1 commit be93f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/LineChart/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const LineChart: React.FC<LineChartProps> = ({
5050

5151
const path = useMemo(() => {
5252
return computePath({ ...data, width, height, cursorRadius, curveType });
53-
}, [data, width, height]);
53+
}, [data, width, height, cursorRadius, curveType]);
5454

5555
const y = useDerivedValue(() => {
5656
return path ? getYForX({ path, x: x.value }) ?? 0 : 0;

0 commit comments

Comments
 (0)