Rob
08/21/2024, 10:09 AMLaunchedEffect(endReached) {
if (endReached && endCursor != null) {
onEvent(ContentListEvent.LoadMore)
}
}
the end reached is just this
val endReached by remember {
derivedStateOf {
!listState.canScrollForward
}
}
But when no item is left (the end cursor is null, and the onEvent function is not triggered), the last item of the lazy column is not fully visible. If I remove the Launched Effect block, it will work. Does anyone have any idea why?Phil Bayfield
08/21/2024, 11:58 AMRob
08/21/2024, 12:18 PMPhil Bayfield
08/21/2024, 12:21 PMRob
08/21/2024, 12:28 PM