The Pagination sub-controller is responsible for navigating between pages of results in a commerce interface.
Pagination
Fetches the next page of products, and appends them to the current list of products.
Navigates to the next page.
Navigates to the previous page.
Navigates to a specific page.
The page to navigate to.
Sets the page size.
The page size.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
A scoped and simplified part of the headless state that is relevant to the Pagination sub-controller.
The
Pagination
sub-controller is responsible for navigating between pages of results in a commerce interface.