Skip to content
module@warp-drive/core/signals/-leaked

Interface PaginationLinksSubscription<RT, E> sincev5.9.0

Defined in: warp-drive-packages/core/src/signals/pagination-links-subscription.ts:8

Hideconstructor

The framework-agnostic core of a pagination links component (for example the <EachLink /> component of @warp-drive/ember): it owns the component lifecycle, while the links themselves live on the PaginationLinks it exposes.

Given the PagedPaginationState a <Paginate /> component is driving, paginationLinks derives that state's PaginationLinks — the numbered links (with placeholders for gaps) and the relational first/prev/next/last links a component yields for the consumer to render. All of them read from the same shared page graph as the <Paginate /> component, so they stay in sync as pages load and the active page changes.

Type Parameters

RT

RT

E

E

Methods

(symbol) dispose()

ts
(symbol) dispose(): void;

Defined in: warp-drive-packages/core/src/signals/pagination-links-subscription.ts:13

The method to call when the component this subscription is attached to unmounts.

Returns

void

Properties

Get Signature

ts
get paginationLinks(): Readonly<PaginationLinks<RT, E>>;

Defined in: warp-drive-packages/core/src/signals/pagination-links-subscription.ts:62

The PaginationLinks derived from the PagedPaginationState passed as an arg — the surface a links component yields to its consumer: the numbered links (empty for cursor-based collections) and the relational first/ prev/next/ last links.

Recomputes when the pages arg changes, so a component whose pagination resets to a different collection derives fresh links automatically.

Returns

Readonly<PaginationLinks<RT, E>>

Released under the MIT License.