-
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/#105] 탐색 뷰 더미데이터 연결 #106
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.
고생하셨습니다!
하나 확인하고 가고 싶어서 Request Change하니 확인 후 답변 달아 주세요~
private fun getCategoryList() { | ||
viewModelScope.launch { | ||
runCatching { | ||
exploreRepository.getCategoryList() | ||
.onSuccess { response -> | ||
_state.update { | ||
it.copy( | ||
categoryList = UiState.Success(response.toImmutableList()) | ||
) | ||
} | ||
} | ||
.onFailure { | ||
_state.update { | ||
it.copy( | ||
categoryList = UiState.Failure("카테고리 목록 조회 실패") | ||
) | ||
} | ||
} | ||
} | ||
} | ||
} |
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.
p1) Repository에서 이미 Result 객체로 보내주고 있는데 한번 더 runCatching으로 묶은 이유가 있을까요?
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.
제가 runCatching이 뭔지,,, 까먹었나봅니다,,,ㅋㅋㅋ큐ㅠ
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.
LGTM~
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.
LGTM~
…mock-data # Conflicts: # app/src/main/java/com/spoony/spoony/data/di/RepositoryModule.kt
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.
LGMT~
Related issue 🛠
Work Description ✏️
Screenshot 📸
Screen_Recording_20250122_010650_Spoony-Android.mp4
Uncompleted Tasks 😅
To Reviewers 📢
서버에서 태그 텍스트컬러랑 배경컬러 바꿔서 저장해가지고 지금 두개가 섞여서 오고 있는데 전달해두었으니 참고 부탁드립니다!!