How to nicely init state from database in Jetpack Compose?

I have a Jetpack Compose (desktop) app with a database, and I want to show some UI based on data from the db: val data = remember { mutableStateListOf<Dto>() } Column { data.forEach { /* make UI */ } } My question is, at which point should I execute my database query to fill the… Read More How to nicely init state from database in Jetpack Compose?

Unresolved reference: ExposedDropdownMenuBox in Compose for Desktop

I need to implement a drop down menu for Windows App which is based on Compose for Desktop For that I am trying to use ExposedDropdownMenuBox But I am getting error: Unresolved reference: ExposedDropdownMenuBox Following is the code: ExposedDropdownMenuBox( expanded = expanded, onExpandedChange = { expanded = !expanded } ) { // TextFeild implementation }… Read More Unresolved reference: ExposedDropdownMenuBox in Compose for Desktop