Skip to content

Changed Pagination to fix an issue with propagating step and page properties to Data view #6616

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

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

ericsoderberghp
Copy link
Contributor

What does this PR do?

Changed Pagination to fix an issue with propagating step and page properties to Data view.

Adds a useEffect() to pass up the step and page when they different from the Data's view.

Where should the reviewer start?

Pagination.js

What testing has been done on this PR?

Added a new unit test.
Manually tested a story.

How should this be manually tested?

manually

Do Jest tests follow these best practices?

aligned with existing Data unit tests

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

no

Should this PR be mentioned in the release notes?

yes

Is this change backwards compatible or is it a breaking change?

backwards compatible

Copy link
Collaborator

@MikeKingdom MikeKingdom left a comment

Choose a reason for hiding this comment

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

LGTM

@ericsoderberghp ericsoderberghp merged commit 1383898 into master Jan 31, 2023
@ericsoderberghp ericsoderberghp deleted the fix/data-pagination branch January 31, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants