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: