Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
♻️ :: launched effect 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
chlgkdms committed Nov 19, 2023
1 parent 6f497a4 commit 11d3b80
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ internal fun CreateDiary(
}
}
}
}

LaunchedEffect(Unit) {
diaryViewModel.sideEffect.collect {
when (it) {
is DiarySideEffect.CreateDiarySuccess -> {
moveToBack()
}
is DiarySideEffect.CreateDiarySuccess -> moveToBack()
}
}
}
Expand Down

0 comments on commit 11d3b80

Please sign in to comment.