-
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] 7주차 필수 과제 #14
base: develop
Are you sure you want to change the base?
[FEAT] 7주차 필수 과제 #14
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.
7차 과제도 수고하셨습니다 !!
fun Context.serverToast(message: String? = "") { | ||
Toast.makeText(this, message, Toast.LENGTH_SHORT).show() | ||
} |
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.
toast와 serverToast를 무슨 차이일까요 ?
sealed interface HomeSideEffect : UiSideEffect | ||
|
||
sealed class HomeEvent : UiEvent |
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.
효빈님께도 드린 질문인데, 만약 sideeffect와 event가 없더라도 만들어두는게 좋을까요 ? 저는 안만들어서 ..
LoadState.Idle -> {} | ||
|
||
LoadState.Loading -> {} | ||
|
||
LoadState.Success -> MyProfileScreen(myUiState = uiState) | ||
|
||
LoadState.Error -> {} |
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.
Idle은 뭘까요 ! 그리고 비어있는 건 빈 상태로 두는게 좋은지, 애초에 추가하지 않는게 좋은지 궁금합니다 !
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.
저 이제 발견했는데요 파일명에 오타있음!!ㅋㅋㅋㅋ
|
||
|
||
@ExperimentalPermissionsApi | ||
@OptIn(ExperimentalPermissionsApi::class) |
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.
이 어노테이션을 추가하신 이유가 무엇인가요?? 어떤 역할을 하는 어노테이션일까요?
when (uiState.loadState) { | ||
LoadState.Idle -> {} | ||
|
||
LoadState.Loading -> {} | ||
|
||
LoadState.Success -> MyProfileScreen(myUiState = uiState) | ||
|
||
LoadState.Error -> {} | ||
} |
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.
success를 제외하면 다 빈 코드인데 else를 사용하지 않고 다 명시해준 이유가 무엇인가요????
setEvent( | ||
MyProfileContract.ProfileEvent.FetchUserHobby( | ||
loadState = LoadState.Loading, | ||
userHobby = currentState.hobby | ||
) | ||
) |
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.
event를 뷰모델 내에서도 수정하시네요!! 저는
event = 사용자의 intent -> 뷰에서만 변경됨!!
이렇게 생각했었는데 뷰모델 내에서도 setEvent를 해도 괜찮나요??(진짜 모름)
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.
고생하셨습니다 ~
HomeScreen() | ||
HomeRoute() |
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.
변경하신 이유가 있나요?
} | ||
|
||
when (uiState.loadState) { |
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.
각 상태에 따라 적절한 화면을 보여주는 것이 좋아보여요!
import androidx.compose.material.icons.filled.CheckCircle | ||
|
||
object SignUpImage{ | ||
val EXTRA_SIGNUP_IMAGE_LIST = listOf( |
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.
immutable이나 stable하게 선언하면 좋을 것 같네요 !
Related issue 🛠
Work Description ✏️
Screenshot 📸
9pr.mp4
Uncompleted Tasks 😅
To Reviewers 📢
아직 에러처리와 코리 적용을 못했습니다 시험이끝나고 돌아와서 바로 해보겠습니다 ㅠㅠ