how to use live data in compose
In the composable function, observe the data as state using LiveData#observeAsState extension. Next, make API call using LaunchedEffect - for one time call, use Unit or any constant as key. For UI, as usual - skim through the data and construct the UI. This example shows listing books