Skip to content

[week10][김민서] 과제 제출#55

Open
minseo25 wants to merge 2 commits intominseo-week10from
minseo-week10-hw
Open

[week10][김민서] 과제 제출#55
minseo25 wants to merge 2 commits intominseo-week10from
minseo-week10-hw

Conversation

@minseo25
Copy link

@minseo25 minseo25 commented May 27, 2024

💎 과제 구현 설명

과제를 위해 사용했던 함수, 수정한 파일 등 구현 내용에 대한 간단한 설명을 작성해 주세요.

[프론트]

  • Comment/CommentElement.jsx , index.jsx 수정 => comment CRUD
  • Posts/index.jsx 수정 => like 기능
  • apis/api.js 수정 => axios interceptor 추가 및 수정
  • apis/axios.js 수정 => instanceWithToken 에서 accessToken 없을 때의 코드흐름 약간 수정

[백]

  • Comment/serializers.py => serializer 약간의 수정
  • 기초 / 심화 과제 완료

🏁 PR 체크리스트

  • [ O ] 코드가 오류 없이 정상적으로 실행되나요?
  • [ O ] 커밋 메시지 컨벤션(템플릿 활용)을 준수했나요?
  • [ O ] 과제 마감기한을 준수했나요?

🖼️ Screenshot / Video

image

🙌 Issue

과제 수행 중 어려웠던 부분이나 궁금했던 점을 자유롭게 작성해 주세요.

로그아웃 된 상태에서 like 버튼을 누르면, 혹은 댓글을 작성하려고 하면 axios interceptor에서 accessToken 없을 때의 코드 흐름으로 흐르게 되고, 런타임 에러 처리가 안되는 상황 발생

(Small Post와 Big Post는 로그아웃 상태에서도 볼 수 있게 구현되어 발생하는 시나리오)
=> 평재 형님이 도와주셔서 alert() 추가 및 error Throw 하고, likePost API에서 try-catch 핸들링하는 방식으로 처리

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.

4 participants