* Check whether a props change should result in an update of player.
(prevProps: YouTubeProps, props: YouTubeProps)
| 57 | * Check whether a props change should result in an update of player. |
| 58 | */ |
| 59 | function shouldUpdatePlayer(prevProps: YouTubeProps, props: YouTubeProps) { |
| 60 | return ( |
| 61 | prevProps.id !== props.id || |
| 62 | prevProps.className !== props.className || |
| 63 | prevProps.opts?.width !== props.opts?.width || |
| 64 | prevProps.opts?.height !== props.opts?.height || |
| 65 | prevProps.iframeClassName !== props.iframeClassName || |
| 66 | prevProps.title !== props.title |
| 67 | ); |
| 68 | } |
| 69 | |
| 70 | type YoutubePlayerCueVideoOptions = { |
| 71 | videoId: string; |
no outgoing calls
no test coverage detected
searching dependent graphs…