-
Notifications
You must be signed in to change notification settings - Fork 0
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
#74 [feat] 회원 탈퇴 서버통신 #78
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.
진짜 고생많았다아~~!!
|
||
private fun deleteAuth() { | ||
val intent = Intent(requireActivity(), LoginActivity::class.java) | ||
viewModel.isDeleteAuthResponse.observe(viewLifecycleOwner) { deleteSuccess -> |
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.
viewLifecycleOwner.. 아직 쓰면서도 정확히 어떤 기능을 하는지 잘 모르겠네요
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.
fragment에서 livedata를 옵저빙할 때 viewLifecycleOwner
를 사용하면 fragment의 생명주기를 따르기 때문에 this
에서 옵저버가 여러개 생기는 이슈를 방지하고 메모리 누수를 방지할 수 있습니다!
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.
멋지다..!
|
||
private fun deleteAuth() { | ||
val intent = Intent(requireActivity(), LoginActivity::class.java) | ||
viewModel.isDeleteAuthResponse.observe(viewLifecycleOwner) { deleteSuccess -> |
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.
LGTM👍
sharedPreferences = | ||
this.requireActivity().getSharedPreferences("user", Context.MODE_PRIVATE) | ||
val bearType = sharedPreferences.getString("bearType", BROWN) |
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.
제가 다음 pr때 관련 UseCase 만들어 두겠습니다~!
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.
네엡
📑 Work Description
🛠️ Issue
📷 Screenshot
feat.delete.auth.member.mp4
💬 To Reviewers