Skip to content
public-library›Rules›TanStack Query›Derive infinite query page params from the server's response

Derive infinite query page params from the server's response

Have getNextPageParam return the next cursor or page from what the server says, and return undefined or null when the server says there are no more pages.

In the full rule