-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update field descriptions on select token change #1344
Update field descriptions on select token change #1344
Conversation
|
||
if (allTokensSelected) { | ||
let newAllTokenInfos = await gui.getAllTokenInfos(); | ||
if (newAllTokenInfos !== allTokenInfos) { |
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.
hm this isn't a deep comparison of equality, does it actually work? this is something we should show in a test
also, we are calling getAllTokenInfos with every state change, but we only need to do that if the tokens have changed
so we need more granular control over our state change callback
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 this will be easier to implement after merging #1361. Let's visit this again after that PR
Motivation
See issue: #1338
Solution
Checks
By submitting this for review, I'm confirming I've done the following:
fix #1338