Skip to content
module@warp-drive/experiments/pagination @experimental

Interface PagedPaginationState<RT = unknown, E = unknown>

ts
interface PagedPaginationState<RT = unknown, E = unknown> extends SharedPaginationState<RT, E> {
  readonly activePage: 
  | Readonly<PageCache<RT, E>>
  | null;
  readonly activePageRequest: Future<RT> | null;
  loadPage: (url: string) => Promise<RT | null>;
  readonly totalPages: number;
  adoptPage(request: Future<RT>): Promise<RT | null>;
}

Defined in: node_modules/.pnpm/@warp-d_5e1563e0e582c8365bb74466d3761d6d/node_modules/@warp-drive/core/dist/signals/-leaked.d.ts:226

The paged (single-page view) surface of a PaginationState: render activePageRequest, navigate with loadPage. This is what the <Paginate /> component yields in 'paged' mode (the default).

Extends

Type Parameters

RT

RT = unknown

E

E = unknown

Methods

adoptPage()

ts
adoptPage(request: Future<RT>): Promise<RT | null>;

Defined in: node_modules/.pnpm/@warp-d_5e1563e0e582c8365bb74466d3761d6d/node_modules/@warp-drive/core/dist/signals/-leaked.d.ts:218

See PaginationState.adoptPage.

Parameters

request

Future<RT>

Returns

Promise<RT | null>

Inherited from

SharedPaginationState.adoptPage

Properties

activePage

ts
readonly activePage: 
  | Readonly<PageCache<RT, E>>
  | null;

Defined in: node_modules/.pnpm/@warp-d_5e1563e0e582c8365bb74466d3761d6d/node_modules/@warp-drive/core/dist/signals/-leaked.d.ts:228

See PaginationState.activePage.


activePageRequest

ts
readonly activePageRequest: Future<RT> | null;

Defined in: node_modules/.pnpm/@warp-d_5e1563e0e582c8365bb74466d3761d6d/node_modules/@warp-drive/core/dist/signals/-leaked.d.ts:230

See PaginationState.activePageRequest.


loadPage

ts
loadPage: (url: string) => Promise<RT | null>;

Defined in: node_modules/.pnpm/@warp-d_5e1563e0e582c8365bb74466d3761d6d/node_modules/@warp-drive/core/dist/signals/-leaked.d.ts:232

See PaginationState.loadPage.

Parameters

url

string

Returns

Promise<RT | null>


totalPages

ts
readonly totalPages: number;

Defined in: node_modules/.pnpm/@warp-d_5e1563e0e582c8365bb74466d3761d6d/node_modules/@warp-drive/core/dist/signals/-leaked.d.ts:216

See PaginationState.totalPages.

Inherited from

SharedPaginationState.totalPages

Released under the MIT License.