Fix memoization of chart y-range parameters
This commit is contained in:
@@ -15,7 +15,7 @@ export function useCustomYDomain(props: Props) {
|
||||
: calculatedDomain
|
||||
|
||||
return yDomain
|
||||
}, [props.data])
|
||||
}, [props.data, props.range])
|
||||
}
|
||||
|
||||
function domainForData(data: Array<Point>): [number, number] {
|
||||
|
||||
Reference in New Issue
Block a user