<Unexpected recompositions on Composables that acc...
# stackoverflow
r
Unexpected recompositions on Composables that accept lambda functions as argument I have a Composable function that has a single Button that accepts lambda as an argument for Button's onClick parameter. I define an empty function in my ViewModel and provide it to this Composable. Also in ViewModel there's a list, that is periodically (every second) inserted with a new item. The list is supplied to a different Composable, that contains a LazyList. My problem is that whenever an item is added to the list, the Composable with a Button is recomposed, even though that function...