YASAN03/25/2022, 9:18 PM
using Paging3 (with its compose library). I now show the paginated list by converting the
object. My issue is that I cannot find a way to show any state other than the success state like showing the loading indicator or showing an error when the loading of a page fails. I have done this outside Compose using RecyclerViews but I cant find anything useful for it in Compose.
myanmarking03/26/2022, 1:07 AM
Patrick Kellison03/26/2022, 2:58 PM
with properties like
that can be observed to be in Loading, Error, Refreshing, etc. Not sure on the syntax, replying here on mobile, but that's the gist of it
YASAN03/26/2022, 4:10 PM
So if these == loading it means data is being loaded on that side? I have to just handle how to properly show it in the composables?
val prependLoading = trendingGifs.loadState.prepend == LoadState.Loading val appendLoading = trendingGifs.loadState.append == LoadState.Loading
myanmarking03/26/2022, 4:30 PM
YASAN03/26/2022, 4:31 PM