Is this normal behavior? Why is refresh random? (<...
# compose
v
Is this normal behavior? Why is refresh random? (Swipe Refresh & Paging)
The sorting of the list remains normal.
c
Doesn’t look like it. Can you raise a bug on the Accompanist repo and I’ll take a look
1
v
I did it for the first time. fyi 🙂 https://github.com/google/accompanist/issues/439
c
I actually think this might be an an issue in
LazyColumn
. Maybe it’s dispatching scroll events when data changes or something. @Andrey Kulikov
Either way, I can’t recreate this in Tivi (which uses both swipe refresh and paging)
a
we don’t dispatch scroll events on data changes, no
v
Repo with problem. It might come in handy. Add to github
c
Thanks! I’ll take a look tomorrow
🙏 1
1
m
I don’t think it’s an issue at all with LazyColumn. Basically, LazyColumn is trying to stay as jank free as possibly. As a result, it’s trying to keep the currently visible data, plus a page or two on each side loaded into memory so scrolling will be smoother. This is the same exactly thing that ViewPager and other controls do.