You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loadNext: Function used to fetch more items in the connection in the "forward" direction.
Arguments:
count: Number that indicates how many items to query for in the pagination request.
options: [Optional] options object
onComplete: Function that will be called whenever the refetch request has completed, including any incremental data payloads. If an error occurs during the request, onComplete will be called with an Error object as the first parameter.
When the callback onComplete is called there is no incremental data supplied? How can I get the increment page that was fetched from the server?
the documentation is not saying that incremental data is an input argument of onComplete, but rather that the function you supply in onComplete will be called on every incremental data load.
Per the documentation https://relay.dev/docs/api-reference/use-pagination-fragment/#behavior
When the callback onComplete is called there is no incremental data supplied? How can I get the increment page that was fetched from the server?
const handlePageLoad = (page) => { console.log(page) }
const handlePaginationModelChange = (newPaginationModel: GridPaginationModel) => { loadNext(newPaginationModel.pageSize, {onComplete: handlePageLoad}) };
The text was updated successfully, but these errors were encountered: