API Requests
usePrivateInfiniteQuery
Position list or order lists typically requires pagination to load all the data. If an infinite scrolling effect has to be implemented usePrivateInfiniteQuery
can be used.
Slightly different from sending an incremental page
parameter, usePrivateInfiniteQuery
will append data from the next page
to data
, and not replace the current response.
For example, to get the list of orders: