Mehdi Haghgoo
11/20/2021, 8:47 PMIan Lake
11/21/2021, 12:08 AMandroidx.compose.runtime:runtime-livedata
is what has observeAsState
. viewmodel-compose
only has APIs for dealing specifically with ViewModelsMehdi Haghgoo
11/21/2021, 1:36 AMIan Lake
11/21/2021, 2:50 AMandroidx.compose
artifact that gives you ViewModel support, but other artifacts, like Navigation Compose, do pull in viewmodel-compose
as a transitive dependency, which would make it available to your code as well