We have a loader that is displayed till the data is fetched from the API, but there is no support for the situation where loading data is failed due to reasons like slow or no network.
Expected Behaviour:
As we are using paging3 library, it comes with loadStateFlow which can be collected on the activity to show different loading this. We need to show the progress bar while content is loading and retry image button if it fails. When the retry button is clicked it should adapter.retry() function.
Steps to reproduce:
Remove app from recent apps.
Turn off internet
Open the app
Notice the progressbar is displayed indefinitely.
I'm submitting a
Current Behaviour:
We have a loader that is displayed till the data is fetched from the API, but there is no support for the situation where loading data is failed due to reasons like slow or no network.
Expected Behaviour:
As we are using paging3 library, it comes with
loadStateFlow
which can be collected on the activity to show different loading this. We need to show the progress bar while content is loading and retry image button if it fails. When the retry button is clicked it should adapter.retry() function.Steps to reproduce:
Remove app from recent apps. Turn off internet Open the app Notice the progressbar is displayed indefinitely.