Assigned
Status Update
Comments
ut...@gmail.com <ut...@gmail.com> #2
Attaching minimal repro recording below.
be...@google.com <be...@google.com>
le...@google.com <le...@google.com> #3
Hi, it seems there's a race condition happening between the key generation and how we internally create the lazy row items. For know you can update your key generation to avoid that: val myPillStringList = pillString.toList()
key = { itemIndex -> myPillStringList[itemIndex].second },
Re-assigning to @as...@google.com for further investigation regarding the derived state usage here.
ut...@gmail.com <ut...@gmail.com> #4
Thanks for the update. Let me try that.
When can we expect this fix to be shipped?
as...@google.com <as...@google.com> #5
Hi, the fix for this issue is not trivial (not sure it is even feasible), so no release date for now.
Description
Jetpack Compose version:
BOM 2024.06.00
Jetpack Compose component(s) used:
LazyRow
Android Studio Build: N/A
Kotlin version: N/A
I am attaching a minimal repro and a recording below. This issue was reported here before and resolved in this commit but it doesn't seem to work when LazyRow is exposed as an API.
The app crashes at the line where
key
parameter is exposed. However, the in-place implementation of LazyRow works without any issue.