mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-01 16:55:21 +03:00
useMemo dependencies
This commit is contained in:
parent
091e773ef7
commit
d0d9bdd209
@ -31,6 +31,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(), []);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user