fix(android): remove explicit item keys

Hail mary fix for Sentry issue COMPOSE-LOBSTERS-2
This commit is contained in:
Harsh Shandilya 2023-07-01 18:58:57 +05:30
parent dd20885270
commit 2a97383e7d
No known key found for this signature in database
2 changed files with 0 additions and 3 deletions

View file

@ -56,7 +56,6 @@ fun DatabasePosts(
stickyHeader(contentType = "month-header") { MonthHeader(month = month) }
items(
items = posts,
key = { it.shortId },
contentType = { "LobstersItem" },
) { item ->
ListItem(

View file

@ -28,7 +28,6 @@ import androidx.compose.ui.unit.dp
import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import androidx.paging.compose.itemContentType
import androidx.paging.compose.itemKey
import dev.msfjarvis.claw.common.posts.PostActions
import dev.msfjarvis.claw.common.posts.toDbModel
import dev.msfjarvis.claw.common.ui.NetworkError
@ -62,7 +61,6 @@ fun NetworkPosts(
) {
items(
count = lazyPagingItems.itemCount,
key = lazyPagingItems.itemKey { it.shortId },
contentType = lazyPagingItems.itemContentType { "LobstersItem" },
) { index ->
val item = lazyPagingItems[index]