WarUI

Pagination and scroll state persistence

GRID-A19-F24P2beyond-baselinePlanned

Serialises the page index, page size and infinite-scroll position into a state object or URL, and restores it on load. Users can bookmark, share or return to the exact place they left.

Planned. This page shows the specification from issue #199. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A paginated grid synchronised with a simulated address bar showing ?page=1&size=25.

Expected behavior

Navigating updates the simulated URL. Reloading restores the same page and size. In infinite mode, the first visible row id and offset are restored after the needed blocks load.

Planned API surface

api.getStateinitialState.paginationinitialState.scrollonStateChangestateSerializer

Acceptance criteria

  • getState includes pageIndex, pageSize and, in infinite mode, the anchor row id and offset (pending)
  • initialState restores without first rendering page 1 (no flash) (pending)
  • Invalid restored values clamp safely (pending)
  • State output is stable and deterministic, with consistent key order (pending)