-
Notifications
You must be signed in to change notification settings - Fork 45
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: Update FilterSelect items when props change #1310
base: main
Are you sure you want to change the base?
fix: Update FilterSelect items when props change #1310
Conversation
contextValue.setItems(props.items) | ||
} | ||
}, [props.items, contextValue]) | ||
|
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 wonder if most of this stuff could just be taken out of state and computed in useMemo
s
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.
Seems fine to me; though, as I mentioned I do wonder what the minimal amount of data we can keep in state actually is.
dfd5460
to
61170b8
Compare
Addresses ONYX-240
Description
Update FilterSelect items when props change.