-
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
feat/#19: week7 compose 과제 구현 #20
base: develop-compose
Are you sure you want to change the base?
Conversation
feat/#15: week6 compose 과제 구현
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.
코드 진짜 진짜 깔끔해요! 보면서 반성하게 되네요,,
xml이랑 비슷하게 짜신 것 같아 궁금한 건 거기 물어봤어요~
너무 고생하셨습니두!
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.
역시 너무 잘하시네요 특히 fold를 사용하신 점이 가장 인상깊었어요...!
return withContext(Dispatchers.IO) { | ||
runCatching { | ||
authService.postLogin(request) | ||
}.fold( |
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.
오 fold는 처음 보는데요? runCatching은 onSuccess/onFailure만 알고있었는데 이런 방법도 있군요!
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@Composable | ||
fun MainView(userId: String, userPw: String, userName: String, userDescription: String) { | ||
fun MainView(viewModel: UserInfoViewModel) { |
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.
오 완전 간결해졌네요 마음의 평화가..!..
viewModel: SignUpViewModel, | ||
context: Context, | ||
userId: String, | ||
userPw: String, |
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.
저두 pw 를 썼는데 축약어는 최대한 지양하는게 좋다고 말해주시더라구요..!
Related issue 🛠
Work Description ✏️
Screenshot 📸
KakaoTalk_20240508_163749744.mp4
To Reviewers 📢
week_4 브랜치가 안합쳐져서 뭐가 많습니다..
+일단 pr 올렸는데 오류 있어서 빨리 고치겠습니다..