-
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 week_compose7 필수과제 구현 #20
base: develop-compose
Are you sure you want to change the base?
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.
항상 코드 보면서 많이 놀랍니다... 배울 점이 많아요...! 존경...
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.
오 이 부분 발견 못했을 법도 한데 어떻게 발견하셨나요 역시 세심하시네요
@@ -103,7 +103,7 @@ private fun LoginScreen( | |||
TextFieldWithTitleComposable( | |||
title = R.string.title_pw, | |||
label = R.string.login_label_pw, | |||
textFieldText = uiState.pw, | |||
textFieldText = uiState.password, |
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이나 nick등으로 축약어 사용했는데 수정했답니다..
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.
완전 깔끔 그 자체.....
많이 보고 배워갑니다ㅏㅏ
@@ -65,7 +66,7 @@ fun HomeScreen( | |||
Scaffold( | |||
bottomBar = { SoptBottomNavigation(navController = navController) } | |||
) { paddingValue -> | |||
when (val uiState = viewModel.uiState.collectAsState().value) { | |||
when (val uiState = viewModel.uiState.collectAsStateWithLifecycle(LocalLifecycleOwner.current).value) { |
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.
오 collectAsStateWithLifecycle 함수를 사용하면 Compose UI에서 상태를 관리하는 과정이 단순화되고, 생명주기에 따라 안전하게 처리된다고 하네요! 하나 배워갑니다!
📌𝘐𝘴𝘴𝘶𝘦𝘴
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
이전과 동일하므로 따로 올리진 않겠습니다!
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴
4주차 코드 리뷰에 대해 코드 수정을 해봤습니다!!
저장소 관련 코드는 이전 주차에 만들어두었고, 패키지 구조만 다시 수정했어요~