-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: youtube player 생성 시점을 intersection observer로 제어 1. loading상태에 따른 조건부 preview 이미지 랜더 및 옵저버 트리거로 사용 2. useEffect 제거 및 callbackRef로 대체 3. 옵저버 메모리 누수 방지를 위한 observer ref 생성 * refactor: paint 전 단계에 스크롤 이동 하도록 개선 노래 목록의 첫번째 요소의 player 로드가 되는 버그가 있었음. 첫번째 요소의 preview 이미지가 랜더된 후 스크롤 이동하기 때문에 발생한 문제. paint 되기 전, 스크롤을 이동하도록 하여 수정
- Loading branch information
1 parent
1314081
commit 118894a
Showing
2 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters