mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +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), [
|
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