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

[RFR] Fix FilterForm Submit #3732

Merged
merged 2 commits into from
Sep 26, 2019
Merged

[RFR] Fix FilterForm Submit #3732

merged 2 commits into from
Sep 26, 2019

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Sep 25, 2019

Fixes #3731

@djhi djhi added this to the 3.0.0 milestone Sep 25, 2019

getShownFilters() {
const { filters, displayedFilters, initialValues } = this.props;
}, [filters]);
Copy link
Member

Choose a reason for hiding this comment

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

filters will change at each render, so this effect will run way too often. Maybe not significant though.

}
}

const handleHide = event => hideFilter(event.currentTarget.dataset.key);
Copy link
Member

Choose a reason for hiding this comment

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

memoize with useCallback

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