Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
You may create a LazyPagingItems
through the extension
To construct a Flow<PagingData>
from static sample data for your preview, you can use
Description
val pagingSource = database.reposDao().reposByName(dbQuery)
return Pager(
config = PagingConfig(pageSize = NETWORK_PAGE_SIZE),
remoteMediator = GithubRemoteMediator(
query,
service,
database
),
pagingSourceFactory = { pagingSource }
).flow
But this will lead to a wrong behaviour of paging, as the paging source isn't created again.
The issue would be hard for developers to debug, therefore, the library should prevent this behaviour.