-
Notifications
You must be signed in to change notification settings - Fork 0
🔀 :: (#113) 고민일기 작성 수정 #114
The head ref may contain hidden characters: "feature/113-\uACE0\uBBFC\uC77C\uAE30-\uC791\uC131-\uC218\uC815"
Conversation
presentation/src/main/java/com/signal/signal_android/feature/main/diary/CreateDiary.kt
Outdated
Show resolved
Hide resolved
@@ -1,5 +1,7 @@ | |||
package com.signal.signal_android.feature.main.diary | |||
|
|||
import android.util.Log |
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.
로그 지워주세요
presentation/src/main/java/com/signal/signal_android/feature/main/diary/DiaryViewModel.kt
Show resolved
Hide resolved
setState(copy(diaries = _diaries.toMutableStateList())) | ||
} | ||
viewModelScope.launch(Dispatchers.IO) { | ||
diaryRepository.deleteDiary(diaryId = diaryId).onSuccess { |
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.
여기도 fail에서 NPE인 경우랑 동일하게 처리해줘야 할 것 같아요
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에도 가고 failure에도 가서 하나에만 처리해줬어요
onLeadingClicked = moveToBack, | ||
trailingIcon = painterResource(id = R.drawable.ic_delete), | ||
onTrailingClicked = {/*TODO delete*/} | ||
) | ||
onTrailingClicked = { diaryViewModel.deleteDiary() }) |
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.
trailing
Clicked인데 trailing
Comma가 없네요 🤣🤣
개요
작업사항
추가 로 할 말