We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handleVideoContainerClick() 호출되었을 때 largeVideoRef가 null이라 참조 오류 발생
컴포넌트가 렌더링되기 전에 클릭 이벤트가 발생하면 largeVideoRef.current는 null
activeVideo가 변경될 때마다 largeVideoRef의 srcObject를 업데이트 하여, largeVideoRef.current가 유효한 video 요소를 참조한 이후에 srcObject 설정
The text was updated successfully, but these errors were encountered:
rabbitate
No branches or pull requests
📌 Issue
원인
handleVideoContainerClick() 호출되었을 때 largeVideoRef가 null이라 참조 오류 발생
컴포넌트가 렌더링되기 전에 클릭 이벤트가 발생하면 largeVideoRef.current는 null
해결
activeVideo가 변경될 때마다 largeVideoRef의 srcObject를 업데이트 하여, largeVideoRef.current가 유효한 video 요소를 참조한 이후에 srcObject 설정
📚 To-do
The text was updated successfully, but these errors were encountered: