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?
p
Phil Bayfield
08/21/2024, 11:58 AM
Not sure why that would happen. You might want to consider the paging library, it's fairly straight forward to implement cursor based pagination with it and it doesn't exhibit that issue