ziv kesten
01/04/2021, 1:24 PMSinan Gunes
01/04/2021, 2:02 PMbuszi0809
01/04/2021, 2:43 PMziv kesten
01/04/2021, 2:45 PMcannot be cast to class androidx.room.paging.LimitOffsetDataSource
And that is kind of a hack with the paging 2 library, where as i am trying to test the paging 3 library.
the PagingSource was introduced in paging 3.
I appreciate you help anyway, tnx!Sinan Gunes
01/04/2021, 2:47 PMSinan Gunes
01/04/2021, 3:54 PMSinan Gunes
01/04/2021, 4:11 PM{}
?ziv kesten
01/04/2021, 5:49 PM{}
is:
class com.zk.trackshows.data.local.dao.DiscoverLocalDataSourceTest$saveChocolateToDbSavesData$1$pagingSourceFactory$1 cannot be cast to class androidx.room.paging.LimitOffsetDataSource
the error without the {}
is:
class java.util.ArrayList cannot be cast to class androidx.room.paging.LimitOffsetDataSource
ziv kesten
01/04/2021, 5:50 PMLimitOffsetDataSource
Sinan Gunes
01/04/2021, 7:19 PMziv kesten
01/04/2021, 8:13 PMjava.util.ArrayList
when casting the dao method that emits the PagingSource to LimitOffsetDataSource, the error is:
class androidx.paging.LegacyPagingSource cannot be cast to class androidx.room.paging.LimitOffsetDataSource
Which is even more interesting, i will further explore.Dustin Lam
01/11/2021, 5:57 PMPagingSource
I would query it directly and compare the LoadResult.Page
Dustin Lam
01/11/2021, 5:58 PMPagingData
is just a wrapper around a stream of library-internal eventsDustin Lam
01/11/2021, 5:59 PMdiffer.snapshot
ziv kesten
01/11/2021, 6:03 PMDustin Lam
01/12/2021, 1:31 AMDustin Lam
01/12/2021, 1:32 AMPagingSource
is necessary vs calling .load
directlyziv kesten
01/16/2021, 2:30 PMDustin Lam
01/16/2021, 8:02 PM