mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 10:15:22 +03:00
useMemo dependencies
This commit is contained in:
parent
6583244b4b
commit
cdaa9a4c19
@ -33,6 +33,7 @@ export default function CameraImage({ camera, onload, searchParams = '', stretch
|
|||||||
const scaledWidth = useMemo(() => Math.ceil(scaledHeight * aspectRatio - scrollBarWidth), [
|
const scaledWidth = useMemo(() => Math.ceil(scaledHeight * aspectRatio - scrollBarWidth), [
|
||||||
scaledHeight,
|
scaledHeight,
|
||||||
aspectRatio,
|
aspectRatio,
|
||||||
|
scrollBarWidth,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const img = useMemo(() => new Image(), []);
|
const img = useMemo(() => new Image(), []);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user