<How to list API call results in Jetpack Compose> ...
# stackoverflow
r
How to list API call results in Jetpack Compose I am trying to build a simple listing app and to fetch data from url I use retrofit2. And then, I store in MutableLiveData object. How can I list retrofit2 results in LazyColumn? My composable: @ExperimentalAnimationApi @Composable fun CarsScreen( viewModel: CarListViewModel = hiltViewModel() ){ viewModel.getCarsFromAPI() val carsLiveData = viewModel.carsLiveData.observeAsState() Column( modifier = Modifier .fillMaxSize() .padding(16.dp),...