-
Notifications
You must be signed in to change notification settings - Fork 7
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.
이제 합법적인 서비스가 됐네요 ㅎㅎ
코멘트 남겼어요 확인 한 번 해주세요~
return useMutation(deleteMemberAccount, { | ||
onSuccess: () => { | ||
localStorage.removeItem('accessToken'); | ||
goIntroducePage(); | ||
toast.show({ type: 'success', message: '탈퇴가 완료되었습니다.' }); | ||
}, | ||
onError: (error) => { | ||
toast.show({ type: 'error', message: getErrorMessage(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.
mutate
를 따로 분리해서 리턴하지 않고 객체 자체를 리턴하신 이유는 mutate
이외에도 사용하는 프로퍼티가 있어서 그런가용?
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.
아하 그렇군요 이해했습니다~!
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.
수고하셨습니다~
* feat: 회원 탈퇴 UI 구현 * feat: 탈퇴 API 작성 * feat: 탈퇴 API mocking * feat: 탈퇴 API 연결
* feat: 회원 탈퇴 UI 구현 * feat: 탈퇴 API 작성 * feat: 탈퇴 API mocking * feat: 탈퇴 API 연결
🛠️ Issue
✅ Tasks
⏰ Time Difference
📝 Note