Skip to content

Commit

Permalink
fix: repeatOnStarted 변경사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyCh0 committed Oct 4, 2023
1 parent 4bccc95 commit 81ea32a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class FestivalListFragment : Fragment(R.layout.fragment_festival_list) {
}

private fun initObserve() {
viewLifecycleOwner.repeatOnStarted {
repeatOnStarted(viewLifecycleOwner) {
vm.uiState.collect {
binding.uiState = it
updateUi(it)
}
}
viewLifecycleOwner.repeatOnStarted {
repeatOnStarted(viewLifecycleOwner) {
vm.event.collect {
handleEvent(it)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ class MyPageFragment : Fragment(R.layout.fragment_my_page) {
}

private fun initObserve() {
viewLifecycleOwner.repeatOnStarted {
repeatOnStarted(viewLifecycleOwner) {
vm.uiState.collect { uiState ->
handleUiState(uiState)
}
}
viewLifecycleOwner.repeatOnStarted {
repeatOnStarted(viewLifecycleOwner) {
vm.event.collect { event ->
handleEvent(event)
}
Expand Down

0 comments on commit 81ea32a

Please sign in to comment.