https://kotlinlang.org logo
#compose
Title
# compose
z

zoha131

12/08/2020, 3:21 PM
How to observe scroll position of a
ScrollableColumn
?
n

nickbutcher

12/08/2020, 3:27 PM
z

zoha131

12/08/2020, 3:34 PM
I want to load data from network when user reach to the bottom of the list. what would be right approach to call the network method?
1
z

Zach Klippenstein (he/him) [MOD]

12/08/2020, 5:15 PM
you could use
snapshotFlow
to create a flow of the current scroll position, and then use
LaunchedEffect
to collect the flow and trigger reload when appropriate