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

Update field descriptions on select token change #1344

Merged
merged 10 commits into from
Feb 21, 2025

Conversation

findolor
Copy link
Collaborator

Motivation

See issue: #1338

Solution

Checks

By submitting this for review, I'm confirming I've done the following:

  • made this PR as small as possible
  • unit-tested any new functionality
  • linked any relevant issues or PRs
  • included screenshots (if this involves a front-end change)

fix #1338

@findolor findolor added rust Related to rust crates webapp labels Feb 18, 2025
@findolor findolor requested a review from hardingjam February 18, 2025 14:50
@findolor findolor self-assigned this Feb 18, 2025

if (allTokensSelected) {
let newAllTokenInfos = await gui.getAllTokenInfos();
if (newAllTokenInfos !== allTokenInfos) {
Copy link
Contributor

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

Copy link
Collaborator Author

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

@hardyjosh hardyjosh enabled auto-merge February 21, 2025 11:49
@hardyjosh hardyjosh merged commit ee69164 into main Feb 21, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Related to rust crates webapp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field descriptions not updating on token change
2 participants