I am trying to use the top current item of `LazyCo...
# compose
s
I am trying to use the top current item of
LazyColumn
as a state and recompose another composable based on it. I have found
listState.layoutInfo.visibleItemsInfo
which works mostly except that it gets updated with every minuscule scroll and causes performance issues. Is there a pattern to implement filter or debounce like behavior with compose state? Is my approach completely wrong?
a
Is
firstVisibleItemIndex
not enough?
👍 1
s
I don't know how I assumed that that's not observable 😅
😂 2