I'm using the new SNAPSHOT Marcel mentioned above....
# glance
q
I'm using the new SNAPSHOT Marcel mentioned above. I came across some odd behavior when trying to use the lambda clickable GlanceModifier. I have a list which is iterated over and a composable is created for each item:
Copy code
listOfItems.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 Compose
m
It should be indeed possible. Could you report a new issue?
q
Created, thanks for the work on this - this latest update is very exciting!