Is there any to trigger a callback when the end of...
# compose
j
Is there any to trigger a callback when the end of a lazycolumn scroll has been reached? aka infinite scroll?
a
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
once that's there though, you can observe the
LazyListState
and decide when to load more stuff
snapshotFlow {}
is helpful for bridging from compose state into other async event-based code for doing things like this
a