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

Feat/#19 week_compose7 필수과제 구현 #20

Open
wants to merge 6 commits into
base: develop-compose
Choose a base branch
from

Conversation

boiledEgg-s
Copy link
Member

📌𝘐𝘴𝘴𝘶𝘦𝘴

📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯

  • Repository 패키지 구조 수정
  • 지난 리뷰 기반 코드 수정
  • collectAsState -> collectAsStateWithLifecycle로 수정

📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵

이전과 동일하므로 따로 올리진 않겠습니다!

💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴

4주차 코드 리뷰에 대해 코드 수정을 해봤습니다!!
저장소 관련 코드는 이전 주차에 만들어두었고, 패키지 구조만 다시 수정했어요~

@boiledEgg-s boiledEgg-s requested a review from a team June 7, 2024 08:23
@boiledEgg-s boiledEgg-s self-assigned this Jun 7, 2024
@boiledEgg-s boiledEgg-s changed the title Feat/week compose7 Feat/#19 week compose7 Jun 7, 2024
@boiledEgg-s boiledEgg-s changed the title Feat/#19 week compose7 Feat/#19 week_compose7 필수과제 구현 Jun 7, 2024
Copy link

@hyeeum hyeeum left a comment

Choose a reason for hiding this comment

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

항상 코드 보면서 많이 놀랍니다... 배울 점이 많아요...! 존경...

Copy link

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,
Copy link

Choose a reason for hiding this comment

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

축약어도 수정하셨군요,저도 이렇게 pw이나 nick등으로 축약어 사용했는데 수정했답니다..

Copy link

@youjin09222 youjin09222 left a 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) {

Choose a reason for hiding this comment

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

오 collectAsStateWithLifecycle 함수를 사용하면 Compose UI에서 상태를 관리하는 과정이 단순화되고, 생명주기에 따라 안전하게 처리된다고 하네요! 하나 배워갑니다!

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.

3 participants