I have an infinite loading list of people sorted alphabetically and I can directly jump to names starting with a specific letter. But then, I can’t load more people because I don’t know my current offset.
Do you know any workaround?
I have an infinite loading list of people sorted alphabetically and I can directly jump to names starting with a specific letter. But then, I can’t load more people because I don’t know my current offset.
Do you know any workaround?
You should be able to store the offset on the client side, the default is:
And you can modify these at the parameter level. Say you wanted to start at 0 with a limit of 10:
example.com/model?_limit=10&_start=0
You can then store that start on the client and when the scroll limit is reached make another call such as:
example.com/model?_limit=10&_start=10
example.com/model?_limit=10&_start=20
example.com/model?_limit=10&_start=30
etc
This is how most inf scroll options work (such as reddit)