Skip to content

[Feat] 좋아요 api 연결 #479#481

Merged
edv-Shin merged 2 commits intofeat/comment-tag-465from
feat/like-479
Mar 19, 2026
Merged

[Feat] 좋아요 api 연결 #479#481
edv-Shin merged 2 commits intofeat/comment-tag-465from
feat/like-479

Conversation

@edv-Shin
Copy link
Contributor

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호

#479

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

  • 피드/댓글 좋아요 api를 연결했습니다.
  • 좋아요 중복 호출 방지를 위해 쓰로틀링 로직을 추가했습니다.

스크린샷 (선택)

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@edv-Shin edv-Shin requested a review from yunjaena February 19, 2026 11:09
@edv-Shin edv-Shin self-assigned this Feb 19, 2026
pendingCommentLikes[commentId] = newLikedState
updateCommentLikeLocally(commentId, newLikedState)

commentLikeJobs[commentId]?.cancel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Job을 캔슬하는 케이스가 좋아요를 누르다가 취소하는 케이스인가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋아요를 연타해서 누르는 경우에는 이전 Job을 취소해서 api가 한번만 호출되도록 했습니다!

@edv-Shin edv-Shin merged commit 4f22975 into feat/comment-tag-465 Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants