feat: talkPick, vote, bookmark API 함수 및 react query hook 작성 #132
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.
💡 작업 내용
💡 자세한 설명
✅ 투표 API - invalidateQueries (talkPick & games)
talkPick
투표 API 성공 시talkPickVote & talkPickId
,talkPick & talkPickId
key로 캐싱된 데이터 무효화game
투표 API 성공 시gameVote & gameId
,games & gameId
key로 캐싱된 데이터 무효화✅ 북마크 API - invalidateQueries (talkPick & games)
talkPick
북마크 API 성공 시talkPick & talkPickId
key로 캐싱된 데이터 무효화game
북마크 API 성공 시games & gameId
key로 캐싱된 데이터 무효화📗 참고 자료 (선택)
📢 리뷰 요구 사항 (선택)
🚩 후속 작업 (선택)
✅ 톡픽 좋아요 관련 API 확인 및 invalidate 필요
현재 배포된 API 중 좋아요 기능을 가진 API는
댓글
과 관련된 API만 있는 것으로 확인했습니다.톡픽 상세조회에도 좋아요 속성이 있기 때문에 백엔드 측에
톡픽 좋아요
관련 API 아직 개발 중인지, 누락된 것인지 확인한 이후에톡픽 좋아요 API 추가 & 'talkPick' invalidate
가 필요할 것 같습니다.✅ 셀프 체크리스트
closes #130