Skip to content

Commit

Permalink
Fix: FunctionSeries re-render on getY prop change
Browse files Browse the repository at this point in the history
  • Loading branch information
green-green-avk committed Sep 25, 2023
1 parent 4b60443 commit 2fd94f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Series/FunctionSeries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export function FunctionSeries(props: FunctionSeriesProps) {
}
return [{ x: 0, y: 0 }];
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [x?.domain[0], x?.domain[1]]);
}, [getY, x?.domain[0], x?.domain[1]]);
return <LineSeries data={data} id={id} {...otherProps} />;
}

0 comments on commit 2fd94f3

Please sign in to comment.