allan.conda
09/09/2022, 12:25 PMStylianos Gakis
09/09/2022, 2:46 PMSpacer(Modifier)
and see if it still recomposes. If not, then the problem is in the item itself.
From guessing I’d say it should not recompose unless you’re inside the item reading something related to the scroll-state or some other state which changes while scrollingallan.conda
09/09/2022, 3:36 PMallan.conda
09/09/2022, 3:37 PMitemsIndexed(
lazyPagingItems,
) { index, item ->
Spacer(Modifier.height(100.dp))
}
allan.conda
09/09/2022, 3:38 PMStylianos Gakis
09/09/2022, 4:03 PMSideEffect { println("asd") }
in the item it’ll also trigger all these times?
I originally thought that the item moving while scrolling should only trigger a re-layout, and not a whole recomposition, it’s surprising if my assumption was wrong.
With that said, do we know what this Layout Inspector is telling us? Do those numbers necessarily talk about recomposition, or also include re-layout?Stylianos Gakis
09/09/2022, 4:06 PMStylianos Gakis
09/09/2022, 4:09 PMshikasd
09/10/2022, 11:53 AM