Skip to content

Commit

Permalink
useMemo dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernt Christian Egeland authored and NickM-27 committed Feb 4, 2023
1 parent 6583244 commit cdaa9a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/components/CameraImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default function CameraImage({ camera, onload, searchParams = '', stretch
const scaledWidth = useMemo(() => Math.ceil(scaledHeight * aspectRatio - scrollBarWidth), [
scaledHeight,
aspectRatio,
scrollBarWidth,
]);

const img = useMemo(() => new Image(), []);
Expand Down

0 comments on commit cdaa9a4

Please sign in to comment.