Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Pagination Types #1421

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Improve Pagination Types #1421

merged 3 commits into from
Jun 3, 2024

Conversation

jherdman
Copy link
Contributor

@jherdman jherdman commented May 27, 2024

Description

The previous iteration of these type was accounting for the generated
page numbers being either a string (SEPARATOR) or numbers.

In this commit I introduce a much narrower type for the
getPageItemsToDisplay function. In doing so we more closely map to the
reality of the implementation and can use a more appropriately narrow
type for onSelectPage.

This resolves some challenges with ECO.

Changes include

  • breaking change: a change that is not backwards-compatible and/or changes current functionality
  • fix: a non-breaking change that solves an issue
  • feature: a non-breaking change that adds functionality
  • chore: contains no changes affecting the library, such as documentation or test updates

Feature checklist

  • Appropriate tests have been added
  • Documentation has been updated
  • Accessibility has been considered

jherdman added 3 commits May 27, 2024 14:45
The previous iteration of these type was accounting for the generated
page numbers being either a string (`SEPARATOR`) or numbers.

In this commit I introduce a much narrower type for the
`getPageItemsToDisplay` function. In doing so we more closely map to the
reality of the implementation and can use a more appropriately narrow
type for `onSelectPage`.

This resolves some challenges with ECO.
@jherdman jherdman marked this pull request as ready for review May 27, 2024 19:53
@haideralsh haideralsh merged commit 9f3861e into master Jun 3, 2024
5 checks passed
@haideralsh haideralsh deleted the GO-8024 branch June 3, 2024 17:51
Copy link

github-actions bot commented Jun 3, 2024

🎉 This PR is included in version 10.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants