Class PaginatedListState<T, P>Abstract

Type Parameters

Hierarchy

Constructors

Properties

initialLoading: boolean = false
loadingNext: boolean = false
loadingPrev: boolean = false
pageSize: null | number
pages: Page<T>[] = []
params: P = ...
DEFAULT_PAGE_SIZE: number = 20

This value should not be relied upon when preloading an API document. In those cases the pageSize should be taken from the meta information of the preloaded document. Checkout DiscussionListState.loadPage for an example.

Accessors

Methods

  • Returns true when there aren't any items and the state has already done its initial loading. If you want to know whether there are items regardless of load state, use hasItems() instead

    Returns boolean

    See

    hasItems

Generated using TypeDoc v0.24.8