Skip to content

Commit

Permalink
Add width to the list of useCallback dependencies for synteny
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jan 10, 2023
1 parent c7b83be commit c790a4b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ export default observer(function LinearSyntenyRendering({
const k1 = useCallback(
(ref: HTMLCanvasElement) => model.setMouseoverCanvasRef(ref),
// eslint-disable-next-line react-hooks/exhaustive-deps
[model, height],
[model, height, width],
)
const k2 = useCallback(
(ref: HTMLCanvasElement) => model.setMainCanvasRef(ref),
// eslint-disable-next-line react-hooks/exhaustive-deps
[model, height],
[model, height, width],
)
const k3 = useCallback(
(ref: HTMLCanvasElement) => model.setClickMapCanvasRef(ref),
// eslint-disable-next-line react-hooks/exhaustive-deps
[model, height],
[model, height, width],
)
const k4 = useCallback(
(ref: HTMLCanvasElement) => model.setCigarClickMapCanvasRef(ref),
// eslint-disable-next-line react-hooks/exhaustive-deps
[model, height],
[model, height, width],
)

return (
Expand Down

0 comments on commit c790a4b

Please sign in to comment.