In data-heavy dashboards, tables, and issue trackers, pagination should always synchronize with the browser's URL query parameters. Storing the active page number in ?page=X enables users to share direct links, bookmark filtered views, and use browser back/forward buttons seamlessly.
In my recent contribution to GitLab's Contributors Platform ( MR !3200 ), I migrated the shared RoutePagination component and its unit test suite to TypeScript.
Beyond adding type annotations, this migration provided an opportunity to modernize the component's two-way binding using Vue 3.4's defineModel() macro and refactor the test suite from inspecting internal component state to asserting user-facing behavior.
1.…