Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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.
beigirad's user avatar
  • 5,704
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:...
Kartik's user avatar
  • 21