Fix debug camera image not updating when loading (#12394)

This commit is contained in:
Josh Hawkins 2024-07-11 10:10:37 -05:00 committed by GitHub
parent 4ee8557061
commit fe4a737421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,8 @@ export default function CameraImage({
}
}, [containerWidth, containerHeight, hasLoaded]);
useEffect(() => setHasLoaded(false), [camera]);
useEffect(() => {
if (!config || !imgRef.current) {
return;