Skip to content
RED SAGSkills
medium10 pts · first answer countsandroidjetpack-composestate

Adding to a list in state

Items are added with items.add(x), but the LazyColumn does not update. Why?

val items by remember { mutableStateOf(mutableListOf<String>()) }
// later
items.add("New order")
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions