Set initialLoadSize = pageSize (#3598)
The pageSize is large enough that there's no need for the default 3 x pageSize initialLoadSize value, and this improves performance. Fixes https://github.com/tuskyapp/Tusky/issues/3578
This commit is contained in:
parent
152318ce85
commit
03031e5716
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class NotificationsRepository @Inject constructor(
|
|||
}
|
||||
|
||||
return Pager(
|
||||
config = PagingConfig(pageSize = pageSize),
|
||||
config = PagingConfig(pageSize = pageSize, initialLoadSize = pageSize),
|
||||
initialKey = initialKey,
|
||||
pagingSourceFactory = factory!!
|
||||
).flow
|
||||
|
|
Loading…
Reference in a new issue