When using `Paging` with custom unique keys(UUID) ...
# compose
k
When using
Paging
with custom unique keys(UUID) and
LazyColumn
I found the following issue: When I scroll through a bigger list(with 150 elements, paging 30) too fast then the app crashes with:
Copy code
"Key $slotId was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item."
Issue is coming from SubcomposeLayout.kt line
353
. Now if I scroll though the list really slowly then everything works fine. Once everything is loaded and I scroll through it fast then there is no issue. Anybody has an idea what could be the issue? Is this maybe a bug inside compose? What I found is by adjusting the paging size to something smaller the crash happens earlier and when modifying the paging to something bigger than the list itself then the crash is not happening. I tried is with compose version
1.1.0
and also with
1.2.0-alpha05
👀 1
and when I am using
index
as key it is also not crashing