-
Notifications
You must be signed in to change notification settings - Fork 376
fix(DataToolbar): fix filter context from updating unnecessarily #4056
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
Conversation
|
PF4 preview: https://patternfly-react-pr-4056.surge.sh |
bc68471 to
976842c
Compare
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@redallen Any ideas about the difference in snapshots? I can't seem to get them to update to what the build is wanting, they are passing on my machine. Maybe I have to clean a cache somewhere? |
dlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but a test is failing @kmcfaul
…n chips don't change
976842c to
0ce9b51
Compare
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #3770
DataToolbar's state was getting updated by each DataToolbarFilter even when nothing was changed, so I added a check to only kick off the update when a filter's chips got updated.
Moving DataToolbar's internal
filterInfoobject out of its state, to a private variable, would be another way to resolve the bug.