```fun getFilesList() = Pager( PagingConfig( ...
# squarelibraries
a
Copy code
fun 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?