mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
fix(android): attempt to workaround duplicate item keys bug
Fixes COMPOSE-LOBSTERS-2E
This commit is contained in:
parent
81f4d35f93
commit
9c07169b1b
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ fun NetworkPosts(
|
|||
LazyColumn(state = listState) {
|
||||
items(
|
||||
count = lazyPagingItems.itemCount,
|
||||
key = lazyPagingItems.itemKey { it.shortId },
|
||||
key = lazyPagingItems.itemKey { item -> "${item.shortId}-${item.hashCode()}" },
|
||||
contentType = lazyPagingItems.itemContentType { "LobstersItem" },
|
||||
) { index ->
|
||||
val item = lazyPagingItems[index]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue