DEV Community

Discussion on: Infinite LazyColumn in Jetpack Compose

Collapse
 
akr profile image
UEDA Akira • Edited

This article is very helpful. Thanks.
But in my case, I found that if appended items are small and the loadMore remains true after load, onLoadMore won't be called because the state is not changed. I solved it by modifying the snapshotFlow line as follows:

snapshotFlow { Pair(loadMore.value, listState.layoutInfo.totalItemsCount) }
Enter fullscreen mode Exit fullscreen mode