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

Fix pagination lost bug #228

Merged
merged 1 commit into from
Jan 24, 2016
Merged

Conversation

frontsideair
Copy link
Contributor

I've changed the order of preference for page and pagination size when receiving props. It would prefer nextProps over current page, which caused problems for me. It might work when you handle the selection inside the component, but as I'm giving this as a prop, it's triggered at times when it wasn't expected.

With this PR it'll prefer current page and pagination size over the ones provided by props.

@AllenFang
Copy link
Owner

@frontsideair, thanks, I'll review it 👍

AllenFang added a commit that referenced this pull request Jan 24, 2016
@AllenFang AllenFang merged commit 6fe1812 into AllenFang:master Jan 24, 2016
@AllenFang
Copy link
Owner

@frontsideair, could you give me a example for showing this issues, I want to add and explain it on CHANGELOG

@frontsideair
Copy link
Contributor Author

How about this? #233 It's almost the same as the gist I shared to test my error case, it's also illustrative for managing state outside the component.

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