PaginationHelper

Utility for loading additional pages of paginated results.

Usage:

const pager = new PaginationHelper();
const results = await api.search('creature');
if (results.hasMore) {
const nextResults = await pager.loadNextCardPage(results.nextPage);
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Load the next page of card results.

Link copied to clipboard

Load the next page of set results.