I am trying to understand what the initialKey
does in the Pager
constructor, but I cannot find any sort of explanation, not even in the official documentation:
Can anyone explain what it does or how it works and how to use it?
I am trying to understand what the initialKey
does in the Pager
constructor, but I cannot find any sort of explanation, not even in the official documentation:
Can anyone explain what it does or how it works and how to use it?
After testing I believe the initialKey
param is meant to indicate a position in the list, not a page.
I did two tests with varying page sizes.
Table with 2000 entries
Page sizes
For each page size I used the following as the initialKey
for an item at position X
initialKey
= X
initialKey
initialKey
= X / page size
For all results the item would always be correctly loaded in the initial/first chunk of data when I used the initialKey
= X. It always failed when I used it as page size.
I am not sure if this is conclusive, but this was my conclusion from the limited tests for my problem.
© 2022 - 2024 — McMap. All rights reserved.
null
by default – Aloin