android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.44k stars 8.28k forks source link

Paging library with network only datasource stuck after off/on internet connection #232

Closed AucT closed 4 years ago

AucT commented 6 years ago

Hi! How to make paging library's TiledDataSource loadRange work again after off/on internet connection?

p.s. please, if you have time, make some example on paging through network datasource (in java plz).

daimonkor commented 6 years ago

@ChrisCraik Please provide example with progress loading view and catching errors (missing internet connection). How bind and unbind pagination?

sahoosunilkumar commented 6 years ago

I am facing same problem. any solution?

yokrysty commented 6 years ago

same here, using the PositionalDataSource since TiledDataSource is deprecated

dlam commented 4 years ago

Paging3 has added an API on PagingDataAdapter to .retry() errors.

mbahgojol commented 4 years ago

Paging3 has added an API on PagingDataAdapter to .retry() errors.

Hello, I tried the .retry () API, but it doesn't work. i am using rxPagingSource

dlam commented 4 years ago

Hello, I tried the .retry () API, but it doesn't work. i am using rxPagingSource

Thanks for letting us know - if you're able to provide a repro and file a bug to our issue tracker, it would help a lot as well!

https://issuetracker.google.com/issues/new?component=413106&template=1096385

dlam commented 4 years ago

Also preemptively, make sure you notify presentation side of a recoverable error by catching the exception in PagingSource and returning LoadResult.Error.