hi, i have just upgraded my android application to...
# compose
t
hi, i have just upgraded my android application to use kotlin
2.2.0
and compose bom
2025.06.01
my application has developed an issue where single items within a LazyColumn are not being recomposed e.g. when selected or selection is toggled, basically any list item that is affected by any user interaction now does not recompose to reflect the user interaction. when i downgrade kotlin to
2.1.10
the issue does not exist. why is this?
a
If I had to guess, strong skipping or compose compiler defaults that changed https://kotlinlang.org/docs/whatsnew22.html#compose-compiler
t
i agree, kotlin 2.2.0 must have changed compose related defaults somehow, i did try disabling the ones mentioned in your link however that did not fix my issue 2.2.0 must be doing "something else" with compose that has not been advertised!
d
Can you provide a minimal example of the issue? Do you mean that the UI isn't updated or did you depend on recomposition to do something hackier?
t
i cannot supply any code that recreates the issue as its my organisations policy to not share! we have developed a global Compose "Adapter" that simplifies developing compose lazy lists the adapter supports single and multiple selection, as well as toggling selection it all worked fine until upgrading to kotlin 2.2.0 we werent attempting anything "Hacky" 😉
d
Right but if the issue was a general one that everyone was seeing with 2.2.0 then it would have a) been fixed b) have tons of reports from people So your "global compose adapter" must be doing something that other people generally don't do in their code and without an example that reproduces it we can't help you.
t
agreed, ill struggle on alone then as i cannot share code example 😞 thanks for your time 🙌