-
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
[Fix] 회원가입 학번 입력 로직 수정 #280
Conversation
- Add PowerSpinner for Signup page
- Add Spinner Data Logic - Remove autoInputMajor temporary
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.
고생하셨습니다~ 👍 👍
koin/src/main/java/in/koreatech/koin/ui/signup/SignUpWithDetailInfoActivity.kt
Show resolved
Hide resolved
koin/src/main/java/in/koreatech/koin/ui/signup/SignUpWithDetailInfoActivity.kt
Outdated
Show resolved
Hide resolved
koin/src/main/java/in/koreatech/koin/ui/signup/SignUpWithDetailInfoActivity.kt
Outdated
Show resolved
Hide resolved
|
||
private val _getDeptErrorMessage = MutableLiveData<String>() | ||
val getDeptErrorMessage: LiveData<String> get() = _getDeptErrorMessage | ||
val depts: StateFlow<List<String>> = flow { emit(getDeptNamesUseCase()) } |
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.
backing property 에 대해서 알아봐도 좋을 것 같아요!
https://stackoverflow.com/questions/53050257/viewmodel-backing-properties-kotlin
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.
수고하셨습니다!
|
||
private val _getDeptErrorMessage = MutableLiveData<String>() | ||
val getDeptErrorMessage: LiveData<String> get() = _getDeptErrorMessage | ||
val depts: StateFlow<List<String>> = flow { emit(getDeptNamesUseCase()) } |
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.
해당 부분을 Flow가 아닌 StateFlow로 했어야 하는 이유가 혹시 무엇인가요?
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.
Flow 로 하게 되는 경우 화면을 다시 불러오게 되는 경우 depts 가 다시 collect 되면서 getDeptNamesUseCase()
가 다시 호출되는거로 알고 있어요.
학과명은 유저가 테스크를 진행하는 동안 바뀔 일이 적은 것이라 생각해서 불필요한 API 호출을 줄이려고 했습니다!
개요
상세 작업 내용
작업 결과물
회원가입 화면