File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/components/VideoPlayer Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -157,13 +157,16 @@ function BaseVideoPlayer({
157
157
shouldUseSharedVideoElementRef . current = shouldUseSharedVideoElement ;
158
158
} , [ shouldUseSharedVideoElement ] ) ;
159
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 ] ) ;
160
+ useEffect (
161
+ ( ) => ( ) => {
162
+ if ( shouldUseSharedVideoElementRef . current ) {
163
+ return ;
164
+ }
165
+ // If it's not a shared video player, clear the video player ref.
166
+ currentVideoPlayerRef . current = null ;
167
+ } ,
168
+ [ currentVideoPlayerRef ] ,
169
+ ) ;
167
170
168
171
// update shared video elements
169
172
useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments