Qusai Zakir
12/19/2022, 11:02 AMlistOfItems.forEachIndexed() { index, item ->
CellItem(
modifier = GlanceModifier.clickable{doSomething()},
)
However, whenever any of the CellItems are clicked, all the onClicks are triggered as well.
It looks like this is because GlanceModifier.clickable is passing a null key to the LambdaAction which generates a key but is only unique for each code location.
Using the LambdaAction directly with a UUID key solved the issue. Took me a bit to figure this one out as this is pretty standard when using ComposeMarcel Pinto
12/19/2022, 12:15 PMQusai Zakir
12/19/2022, 1:34 PM