-
Notifications
You must be signed in to change notification settings - Fork 0
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
Instant filters for the orthogroup page #1144
Conversation
Sorry for the delay. I will take a look at this today or tomorrow |
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.
I think the name of the new prop should be consistent with what we use for the checkbox select component. I'm fine with both being instantUpdate
.
Also, I don't think buttonDisplayContent
needs to be tracked with React state. I know this was already in place, but would be good to remove all unnecessary state and effects.
useEffect(() => { | ||
if (instantUpdate) { | ||
onChange(selected); | ||
} | ||
}, [onChange, selected, instantUpdate]); |
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.
This should be called in a callback used as the onChange
prop of CheckboxList
. We don't currently have one defined, so it will be a new callback.
Hi @dmfalke - thanks for the review. I removed all but one effect thanks to your suggestion. While testing things were still working in EDA/Lineplot I found a new bug (already on qa and presumably prod) which I have a fix for too. I don't think it's wise to get rid of the local state for |
Makes sense. Thanks for checking! |
Note that this targets
orthogroup-tree-table
, so can be merged without review.Maybe we demo both or make a video with both?