zt
04/14/2023, 5:48 AMJoel Denke
04/14/2023, 6:01 AMBen Trengrove [G]
04/14/2023, 7:19 AMJoel Denke
04/14/2023, 2:53 PMFrancesc
04/14/2023, 3:33 PMI recommend using them only in Fragment and Activity and pass into composablethat's not feasible; you may not have fragments in a compose only app, and instantiating all your viewmodels in the activity, if you follow the single activity principle, means they will have all your viewmodels tied to the activity lifecycle instead of the more narrow nav graph lifecycle
Stylianos Gakis
04/16/2023, 8:42 PMtop screen level composable
If you're using navigation this would be in your composable destination which defines its route