https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
a

Ananiya

09/14/2022, 8:31 PM
was trying call the first element of a
mutableState
containing
List<List<Any>>
before passing it
LazyColumn
items()
but every time I tried so am introduced with
Compose Disposed, the List is empty
which normally isn't empty if you passed the whole list of list through
LazyColumn
items()
d

Dragos Rachieru

09/22/2022, 8:06 AM
The code inside the
LazyColumn
is not
Composable
, only code inside
items
and
item
. Try something like:
Copy code
val list = derivedStateOf { state.first() }
LazyColumn {
  items(list) {}
}
2 Views