Is there any to trigger a callback when the end of a lazycolumn scroll has been reached? aka infinite scroll?
a
Adam Powell
10/26/2020, 10:17 PM
I don't think
LazyListState
exposes quite enough of what you need just yet, you need to know the last visible position and its offset from the bottom the way it exposes the same for the first/top
➕ 1
Adam Powell
10/26/2020, 10:18 PM
once that's there though, you can observe the
LazyListState
and decide when to load more stuff
Adam Powell
10/26/2020, 10:19 PM
snapshotFlow {}
is helpful for bridging from compose state into other async event-based code for doing things like this