How to query a Room db from a composable to get item details
Having an application with Room
and Compose
, I’m on a composable that needs to retrieve data from the database for painting it. It is a list of favorite flights, and favorite only haves the IDs (iata) of the departure and destination airports. My composable haves the favorite but needs to do selects from airport table to recover all the data for each airport and be able to paint it. Is a list, so it need to do it for a lot of items.
Kotlin Flows not working as expected when Collecting items in UI Screen using collectAsState()
`The Task data is not being inserted in database, therefore not collected and rendered in UI.