Billy Newman
06/22/2022, 1:23 PMBilly Newman
06/22/2022, 1:25 PM@Composable
private fun Items(
items: LazyPagingItems<ListItem>
) {
val scope = rememberCoroutineScope()
val listState = rememberLazyListState(items.itemCount - 1)
About a simple as you get. Not seeing anything in the logs indicating that it attempted and failed. Any idea where I can start looking?natario1
06/22/2022, 1:30 PMrememberLazyListState()
is the initial index, this would only work for the very first set of itemsBilly Newman
06/22/2022, 1:32 PMnatario1
06/22/2022, 1:35 PMBilly Newman
06/22/2022, 1:43 PMLaunchedEffect(items.itemCount) {
scope.launch {
listState.scrollToItem(items.itemCount - 1)
}
}
Billy Newman
06/22/2022, 1:44 PMnatario1
06/22/2022, 1:46 PMBilly Newman
06/22/2022, 1:59 PMBilly Newman
06/22/2022, 1:59 PMnatario1
06/22/2022, 2:04 PMBilly Newman
06/22/2022, 2:08 PM