Colton Idle
05/16/2021, 5:53 AMAn idempotent composable always produces the same result for the same inputs and has no side-effects on recomposition.But since this composable is in a LazyColumn, if you scroll up and down then Random is triggered again after the composable goes off the screen and comes back. Doesn't this go against the whole "same result for the same inputs"? Is the codelab "wrong" in stating that this is idempotent? https://developer.android.com/codelabs/jetpack-compose-state#4
Colton Idle
05/16/2021, 5:58 AMThere's also a really subtle bug with ourusage. Try adding enough todo rows to scroll a few off screen by clicking "Add random todo" repeatedly then scrolling. As you scroll, you'll notice that the icons change alpha every time they scroll back onto the screen.remember