-
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
[Refactor] qa 해결 #500
[Refactor] qa 해결 #500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA 고생많았습니다 !!
const { mutate: deleteTeamMutate } = useMutation({ | ||
mutationFn: ({ teamId }: { teamId: number }) => deleteTeam(teamId), | ||
onSuccess: async () => { | ||
await queryClient.invalidateQueries({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async await 필요 없을 것 같아요 !
onClick={(e) => { | ||
e.stopPropagation(); | ||
setSelectedDate(date); | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨네요👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
}, | ||
onError: (error) => { | ||
createToast(TIMEBLOCK.ERROR.DELETE, 'error'); | ||
console.log(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
콘솔 있습니당!
onError: () => createToast(NOTE.ERROR.DELETE, 'error'), | ||
onError: (error) => { | ||
createToast(NOTE.ERROR.DELETE, 'error'); | ||
console.log(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기두!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
큐에이 고생많으셨어유 !!
해당 이슈 번호
closed #495
체크리스트
📌 내가 알게 된 부분
💎 PR Point
204 delete 긴급 처방
현재 204로 delete 성공이 되는 api에서 오류가 발생합니다..!
원인으로는 서버에서 삭제로직 실행 후 빈 응답값을 전달하는데 그 빈 응답값에 oas가 접근을 하려고 해서 나는 것으로 추정하고 있습니다.
일단 급하게 불을 끄고자 현재 204로 응답값이 오는 delete api들을 보이는대로 oas를 사용하지 않고 axios를 사용하는 코드로 변경해주었습니다. 혹시 빠진 api가 있으면 알려주시면 처리 마저 해두겠습니다!
datepicker 클릭 오류 해결
문제상황은 다음과 같습니다.
따라서
stopPropagation
으로 버블링을 막아서 해결했습니다!그 외에는 자잘한 qa들 처리했습니다!
📌스크린샷 (선택)