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
Albert Chang
05/21/2021, 8:15 AM
Is
firstVisibleItemIndex
not enough?
👍 1
s
Saiedmomen
05/21/2021, 8:27 AM
I don't know how I assumed that that's not observable 😅