Has anyone getting error `java.lang.IllegalArgumen...
# compose
t
Has anyone getting error
java.lang.IllegalArgumentException: 0 was already used with subcompose during this measuring pass
after beta01 when setting
initialFirstVisibleItemIndex
for LazyColumn? Full stacktrace in thread.
a
Are you using the same key for multiple items?
t
Seems like it is the problem, thanks! I'm using Paging 3 with LazyColumn, and
LazyPagingItems.get
might return null if it is a placeholder, I might need to return a UUID instead of a
0
if it is a placeholder.
j
@Tlaster Can you file a bug? Mention what you did (duplicate key on LazyColumn), what error message you encountered (full stack trace) and that this error message was confusing.
cc @Andrey Kulikov
a
you can also use index as a key for keys of placeholders. it just shouldn’t collide with real keys
t