prevent remounting

This commit is contained in:
jessop 2019-09-30 16:17:50 -04:00 committed by Sean Yesmunt
parent be7921e70b
commit 879cba77cb

View file

@ -99,7 +99,7 @@ function VideoViewer(props: Props) {
// Then it's set to false immediately after so we can re-mount a new player
setRequireRedraw(true);
};
}, [videoRef, source, contentType, setRequireRedraw, requireRedraw, muted, volume]);
}, [videoRef, source, contentType, setRequireRedraw, requireRedraw]);
useEffect(() => {
if (requireRedraw) {