Revert "fix(android): attempt to workaround duplicate item keys bug"

Doesn't seem to have resolved the issue.

This reverts commit 9c07169b1b.
This commit is contained in:
Harsh Shandilya 2024-06-11 19:30:44 +05:30
parent ecad03e749
commit 742a30bfdd

View file

@ -63,7 +63,7 @@ fun NetworkPosts(
LazyColumn(state = listState) {
items(
count = lazyPagingItems.itemCount,
key = lazyPagingItems.itemKey { item -> "${item.shortId}-${item.hashCode()}" },
key = lazyPagingItems.itemKey { it.shortId },
contentType = lazyPagingItems.itemContentType { "LobstersItem" },
) { index ->
val item = lazyPagingItems[index]