We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c82070e commit 346b079Copy full SHA for 346b079
src/components/VideoPlayer/BaseVideoPlayer.js
@@ -157,13 +157,16 @@ function BaseVideoPlayer({
157
shouldUseSharedVideoElementRef.current = shouldUseSharedVideoElement;
158
}, [shouldUseSharedVideoElement]);
159
160
- useEffect(() => () => {
161
- if (shouldUseSharedVideoElementRef.current) {
162
- return;
163
- }
164
- // If it's not a shared video player, clear the video player ref.
165
- currentVideoPlayerRef.current = null;
166
- }, [currentVideoPlayerRef]);
+ useEffect(
+ () => () => {
+ if (shouldUseSharedVideoElementRef.current) {
+ return;
+ }
+ // If it's not a shared video player, clear the video player ref.
+ currentVideoPlayerRef.current = null;
167
+ },
168
+ [currentVideoPlayerRef],
169
+ );
170
171
// update shared video elements
172
useEffect(() => {
0 commit comments