allan.conda
07/26/2022, 7:31 AMremeasure
instead. Is there an optimization happening somewhere for scrolling?Albert Chang
07/26/2022, 9:09 AMWhen you read the value of a snapshot state during one of the phases listed above, Compose automatically tracks what it was doing when the value was read.As stated in the guide, a state doesn’t necessarily cause recomposition. If it’s only read in a layout scope, it’ll only trigger re-layout. Same for draw scope. If you are talking about lazy list, it’s actually irrelevant here because it doesn’t use states to trigger recomposition or re-layout.
allan.conda
07/26/2022, 9:55 AM