-
Notifications
You must be signed in to change notification settings - Fork 2
[CDX-190] Feature: Add a function to clear all filters #181
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
[CDX-190] Feature: Add a function to clear all filters #181
Conversation
Mudaafi
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, just a couple of notes
| current: { setFilter, clearFilters }, | ||
| } = result; | ||
|
|
||
| setFilter('Brand', testBrandA); |
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.
Let's include more than one filter for this test. Mind adding a separate test to make sure it doesn't clear other query parameters, Constructor or otherwise, as well?
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.
Hi @Mudaafi
Thank you for the feedback.
I have added a test that uses useRequestConfigs to check for other query parameters
For your review please!
Thank you!
Pull Request Checklist
PR Type
Definition of Done
useFilters