mirror of
https://github.com/tuskyapp/Tusky
synced 2025-02-03 11:07:47 +01:00
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
@ -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…
x
Reference in New Issue
Block a user