Created
June 25, 2022 13:01
-
-
Save attilakruchio/1985b20d7913c4418455b2d109d727bb to your computer and use it in GitHub Desktop.
Gist for 'Easy and elegant navigation with Jetpack Navigation and Hilt' Medium article (https://medium.com/@kruchio98/6f93a0461298)
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
open class BaseViewModel : ViewModel() { | |
private val _events = Channel<SingleEvent>(Channel.UNLIMITED) | |
val events = _events.receiveAsFlow() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment