Skip to content

Conversation

@fhlavac
Copy link
Collaborator

@fhlavac fhlavac commented May 20, 2024

RHCLOUD-32250

  • added PatternFly table to the DataView example in order to debug future features
  • added useDataViewPagination hook to manage the pagination state (for now without URL) management
  • updated tests

image

@patternfly-build
Copy link

patternfly-build commented May 20, 2024

export interface UseDataViewPaginationProps {
page?: number;
perPage: number;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is perPage required but page optional? I think both should be optional IMO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't want to introduce default values for perPage - they can vary from use case to use case. For page I think it is fine to keep it optional since it is usually 1 at the beginning.

@fhlavac fhlavac merged commit 5815705 into patternfly:main May 21, 2024
@fhlavac fhlavac deleted the table branch May 21, 2024 11:40
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-prerelease.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 5.0.0 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants