Skip to content

Commit

Permalink
fix(dependecy): Fix missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanagez committed Sep 24, 2021
1 parent 8333d07 commit 52cd4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/src/components/atoms/videoJS/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const VideoJS = (props: any) => {
const player: any = playerRef.current;
player.src(options.sources);
}
}, [options]);
}, [options, onReady]);

// Dispose the Video.js player when the functional component unmounts
React.useEffect(() => {
Expand Down

0 comments on commit 52cd4ba

Please sign in to comment.