I am creating a PagedList
using:
LivePagedListBuilder(dataSourceFactory, 20)
Inside my implementation of PageKeyedDataSource
, loadParams.requestedLoadSize
returns 60. I tried with other numbers, and it seems that loadParams.requestedLoadSize
always returns the page size I specified times three.
Anyone has any idea as to why this is happening?
Inside PagingConfig
you can set initialLoadSize
to the number you need to set at the first time when loading the list
Pager(
config = PagingConfig(
pageSize = PAGE_SIZE,
initialLoadSize = 10 //if you need to load 10 items at the first time
)
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With