Class PaginatedListState<T, P>Abstract

Type Parameters

Hierarchy

Constructors

Properties

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

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

    See

    hasItems

    Returns boolean

  • Update the this.params object, calling refresh if they have changed. Use requestParams for converting this.params into API parameters

    See

    requestParams

    Parameters

    • newParams: P
    • page: number

    Returns Promise<void>

Generated using TypeDoc v0.23.24