Android Poet
04/25/2024, 3:12 PMfun getFilesList() = Pager(
PagingConfig(
pageSize = 10,
enablePlaceholders = false,
initialLoadSize = 10,
),
) {
QueryPagingSource(
countQuery = appDatabase.countFileInformation(),
transacter = appDatabase,
context = <http://Dispatchers.IO|Dispatchers.IO>,
queryProvider = appDatabase::fileInformationList,
)
}.flow.pagingMap(FileInformation::asModel)
This code keeps refreshing the same list again and again when updating any single item. Is there any solution?