fix: 🎨 Update useRef
This commit is contained in:
parent
befa4e9c06
commit
cc781a9d22
@ -13,7 +13,7 @@ const CustomWebcam = () => {
|
|||||||
setImgSrc(imageSrc);
|
setImgSrc(imageSrc);
|
||||||
isCapture[1](true)
|
isCapture[1](true)
|
||||||
}
|
}
|
||||||
}, [webcamRef]);
|
}, [webcamRef, isCapture]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="webcam-container">
|
<div className="webcam-container">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user