Created
May 11, 2021 12:03
-
-
Save JoseAlcerreca/6e2620b5615425a516635744ba59892e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onCreateView(...) { | |
viewLifecycleOwner.lifecycleScope.launch { | |
viewLifecycleOwner.lifecycle.repeatOnLifecycle(STARTED) { | |
myViewModel.myUiState.collect { ... } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment