All Questions
Tagged with navigation-compose android-viewmodel
2 questions
0
votes
1
answer
255
views
Instantiate ViewModel with composable scope
I want to instantiate a ViewModel with scope of a Composable function.
How can I do this?
I don't want to use navigation-compose to take advantage of its BackStackEntry as ViewModelStoreOwner.
2
votes
1
answer
2k
views
How to handle state flow on back navigate on compose
I am following unidirectional flow in compose for ui state so basically i have sealed class as follow
sealed class UiState{
objet Loading:UiState()
object Success:UiState()
object Error(val error:...