Skip to content
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

Merged
merged 9 commits into from
Jan 17, 2024
Merged

Conversation

emjayMJkim
Copy link
Member

@emjayMJkim emjayMJkim commented Jan 17, 2024

📑 Work Description

  • 회원 탈퇴 서버 통신 구현 완
  • bear type 받아서 탈퇴 이미지 설정

🛠️ Issue

📷 Screenshot

feat.delete.auth.member.mp4

💬 To Reviewers

@emjayMJkim emjayMJkim self-assigned this Jan 17, 2024
@emjayMJkim emjayMJkim added Pull Request pr 날림! Feat 새로운 기능 추가 민정🦊 민정이가 작업함! labels Jan 17, 2024
@emjayMJkim emjayMJkim changed the title #74 [FEAT] 회원 탈퇴 서버통신 #74 [feat] 회원 탈퇴 서버통신 Jan 17, 2024
Copy link
Collaborator

@pump9918 pump9918 left a 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 ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewLifecycleOwner.. 아직 쓰면서도 정확히 어떤 기능을 하는지 잘 모르겠네요

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저두요ㅣ..ㅠ

Copy link
Member Author

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에서 옵저버가 여러개 생기는 이슈를 방지하고 메모리 누수를 방지할 수 있습니다!

Copy link
Member

@minemi00 minemi00 left a 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 ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저두요ㅣ..ㅠ

Copy link
Contributor

@stellar-halo stellar-halo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

Comment on lines +37 to +39
sharedPreferences =
this.requireActivity().getSharedPreferences("user", Context.MODE_PRIVATE)
val bearType = sharedPreferences.getString("bearType", BROWN)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 다음 pr때 관련 UseCase 만들어 두겠습니다~!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네엡

@emjayMJkim emjayMJkim merged commit fcfe197 into develop Jan 17, 2024
1 check passed
@emjayMJkim emjayMJkim deleted the feature/#74-auth-delete branch January 17, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 추가 Pull Request pr 날림! 민정🦊 민정이가 작업함!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feat] 회원 탈퇴 서버 통신
4 participants