Hi there 👋
My name is Marko Savic and I am Sr. Android Engineer at New York Times 🙂
I have integrated
Paging3
library into our Article comments UI - with Jetpack Compose
collectAsLazyPagingItems()
support and we also have implemented
jetpack compose navigation
( from comments page to comments thread page. )
Issue that now we have is that when animation navigation happens it triggers API call couple of times during animation and I don't know why that happens!!! 😢
Issue is similar to this one:
https://stackoverflow.com/questions/71410790/paging-3-list-auto-refresh-on-navigation-back-in-jetpack-compose-navigation
and I have tried saving the instance of Pager but that didn't help 😢
Of course I am using:
flow.cachedIn(viewModelScope)
and Paging3Version is
3.2.0
Btw, I didn't have a luck to find any complex example like in my case where you have Paging3 + JetpackCompose + navigation
Also we have Tabs there but it's another part of story.
Does anyone has experience around this problem?
thank you color
🙇