getPaginationVariables
The getPaginationVariables function is used with the <Pagination> component to generate the variables needed to fetch paginated data from the Storefront API. The returned variables should be used within your storefront GraphQL query.
- Anchor to requestrequestrequestRequestRequestrequiredrequired
The request object passed to your Remix loader function.
- Anchor to optionsoptionsoptions{ pageBy: number; namespace?: string; }{ pageBy: number; namespace?: string; }Default: {pageBy: 20}Default: {pageBy: 20}
Options for how to configure the pagination variables. Includes the ability to change how many nodes are within each page as well as a namespace to avoid URL param conflicts when using multiple
Paginationcomponents on a single page.
Was this page helpful?