useMemo dependencies

This commit is contained in:
Bernt Christian Egeland 2021-08-31 16:40:45 +02:00 committed by Nick Mowen
parent 6583244b4b
commit cdaa9a4c19

View File

@ -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(), []);