-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/mz 197 received envelop edit delete, 장부 그룹핑 제거 #113
Conversation
category = if (categoryId != null) { | ||
CategoryRequest( | ||
id = categoryId, | ||
customCategory = customCategory, | ||
) | ||
} else { | ||
null | ||
}, |
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.
customCategory가 아니라 Category 자체가 null이어도 되나요?
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.
받은 봉투에서는 Category를 입력받지 않아서 괜찮아요
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.
아~ 대신 장부 id가 있군요
private var isFirstVisited: Boolean = true | ||
|
||
fun initData() = viewModelScope.launch { | ||
if (isFirstVisited.not()) return@launch | ||
isFirstVisited = false |
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.
isFirstVisited
가 필요하게 된 경위가 궁금합니다
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.
isFirstVisited가 없으면 초기 컴포지션이 일어날 때마다 아래의 로직이 수행돼요.
isFirstVisited가 없으면 디바이스 화면을 껏다가 키면 로직이 매번 재수행됩니다.
fun updateEnvelopeIfNeed(envelopeUri: String?) = intent { | ||
val envelope = envelopeUri?.let { | ||
Json.decodeFromUri<Envelope>(it) | ||
} ?: return@intent this |
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.
여기도 IfNeed라는 상황이 어떤 상황인지 궁금합니당
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.
장부 상세 화면이 navBackEntry에서 envelopeUri를 넘겨받았다면, 해당 envelop를 업데이트 해주는 상황이에요
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.
이해했습니다~
💡 Issue
🌱 Key changes
✅ To Reviewers
친구 관련 요소를 편집하면 크래시가 발생하는데, 서버 문제여서 수정 요청해놨습니다.
📸 스크린샷
KakaoTalk_Video_2024-01-31-15-35-40.mp4