-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
Feat/#262 좋아요 기능 구현 #270
Merged
Merged
Feat/#262 좋아요 기능 구현 #270
Conversation
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
1. 기존 nowPlayingTrack 상태에 사용된 rank는 변동 가능한 값이므로 part의 id로 변경 2. 이에 따른 props 변경
api 응답 type 그대로 받도록 수정
1. 테스트가 끝난 컴포넌트의 상태를 공유하기 위해 변경하였음. 2. 파일명 변경
1. 기존 isPlaying은 플레이어의 play와 혼동이 생길 가능성이 많았음. 개선을 통해 플레이중인 트랙이라는 의미를 강조함 2. 이에따라 props가 변경되었음
1. 플레이어 초기화 이후 ref에 할당하도록 개선 2. 관련 이벤트 핸들러 생성
1. 타이머, 플레이어 프로바이더의 함수에서 pause 관련 함수 제거 2. 트랙 컴포넌트의 타이머가 영상 상태와 동기화 되도록 수정
실행중인 파트 기준이 rank -> partId 로 변경됨에 따라 로직을 삭제함
변경된 관리방식적용
노래 한곡 재생이 끝나도 댓글 창이 유지되도록 수정
1. 구간 반복 기능이 노래의 재생과 타이머에 영향을 미치지 않도록 개선하였음. 개선 전 반복 기능 토글 시 파트의 처음으로 돌아감 타이머가 초기화됨 개선 후 반복 기능 토글 시 토글 기능만 on off 되고 파트의 처음으로 가지 않음. 타이머가 초기화 되지 않음. 기존 개별 Track컴포넌트에 적용했던 TimerProvider를 killingPartInterface 컴포넌트에 적용함.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝작업 내용
💬리뷰 참고사항
이 커밋들만 봐주시면 됩니다!
현재 isLikes 상태 변경에 따라 Effect가 실행되는 구조인데요!
(좋아요 토글은 빠르게 보여주기 + 요청은 1회만 보내기 를 위해 디바운스를 적용)
때문에 초기 랜더시에 각 파트별로 좋아요 api 요청이 1회 기본적으로 발생합니다!
이 부분이 계속 신경쓰이는데, 오래 고민하다가 지금의 구조에서는 별다른 방법이 없다고 생각해서 제출합니다.
💬 이에 대한 의견이 궁금합니다! 좋은 방법이 있으시면 의견주세요!
effect 로직 수정 및 훅 분리 커밋입니다.
#️⃣연관된 이슈
close #262