Skip to content
RED SAG Skills
hardStudy question · answer published in Android interview questions, so no pointsandroidjetpack-composeperformance

Child list never skips

OrderList recomposes every time the parent does, even when orders did not change. Why?

@Composable
fun OrdersScreen(orders: List<Order>, query: String) {
    SearchBar(query)
    OrderList(orders.filter { it.isActive })
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions