Skip to content

Feat/edit profile#37

Merged
SseO-KR merged 9 commits intodevfrom
feat/edit_profile
Nov 14, 2023
Merged

Feat/edit profile#37
SseO-KR merged 9 commits intodevfrom
feat/edit_profile

Conversation

@HanYeop
Copy link
Copy Markdown
Contributor

@HanYeop HanYeop commented Nov 11, 2023

  1. 프로필 수정 화면
  2. 프로필 수정 기능 추가
  3. 회원가입, 프로필 수정에서 겹치는 로직 리팩토링

_editEventFlow.emit(EditEvent.Fail(R.string.message_invalid_nickname))
}
}else{
editProfile()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nicknameInvalidCheck 함수 내에서 editProfile을 실행하는 방법도 있지만
nicknameInvalidCheck에서 boolean을 return 시켜서 함수 명대로 Check의 역할만 하게 하고
editProfileRequest 함수 내에서 true 시에만 editProfile을 실행시키면 두 함수 간의 결합도를 낮출 수 있지 않을까 합니다

class MyPageFragment : BaseFragment<FragmentMyPageBinding>(R.layout.fragment_my_page) {

private val myPageViewModel by viewModels<MyPageViewModel>()
private val myPageViewModel by activityViewModels<MyPageViewModel>()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

navArgs 대신 activityViewModels를 사용한 이유가 뭔가요?

@SseO-KR SseO-KR merged commit 792b434 into dev Nov 14, 2023
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.

2 participants