You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
쇼츠 콘텐츠 클릭 시 호출되는 /content/click API 연동 기능 추가
클릭 API를 사용하는 위치(홈 추천 콘텐츠, 쇼츠 타이틀, 검색 결과 등)에 호출 로직 연동 완료
쇼츠 댓글 컴포넌트 리패치 로직 추가 (refetchQueries)
쇼츠 페이지에서 브라우저 뒤로가기를 고려한 처리 추가
You invoke navigate in the overlay and destructure useNavigate(), but there is no import { useNavigate } from "react-router-dom" at the top of the file.
An inline arrow function is used directly in the onClick prop. Consider extracting this to a named handler (e.g., handleContentClick) to improve readability and consistency with event handler naming conventions.
Why: Using mutate instead of mutateAsync prevents unhandled promise warnings when the mutation is fire-and-forget and aligns with the existing component usage.
Low
Add error handling to mutation
Attach an onError callback to the mutation to catch and log failures, preventing silent errors from going unnoticed.
This file contains hidden or 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
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.
User description
✨ PR 세부 내용
쇼츠 콘텐츠 클릭 시 호출되는 /content/click API 연동 기능 추가
클릭 API를 사용하는 위치(홈 추천 콘텐츠, 쇼츠 타이틀, 검색 결과 등)에 호출 로직 연동 완료
쇼츠 댓글 컴포넌트 리패치 로직 추가 (refetchQueries)
쇼츠 페이지에서 브라우저 뒤로가기를 고려한 처리 추가
☑️ 체크리스트
🛠 기본 검사 항목
✍️ 작성자 선택 항목
📸 스크린샷
✅ 리뷰 요구사항
PR Type
Enhancement, Bug fix
Description
Add content click logging API endpoint
Introduce useContentClickMutation hook
Integrate click logging in key UI components
Fix shorts back navigation and comment refetch
Diagram Walkthrough
File Walkthrough