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

feat(suite-native): only download token definitions for relevant networks #15263

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

vytick
Copy link
Contributor

@vytick vytick commented Nov 6, 2024

  • Only definitions for enabled networks and networks of imported accounts are fetched.

Related Issue

Part of #14399

@vytick vytick added the mobile Suite Lite issues and PRs label Nov 6, 2024
@vytick vytick requested a review from a team as a code owner November 6, 2024 11:32
Copy link

github-actions bot commented Nov 6, 2024

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 9
  • More info

Learn more about 𝝠 Expo Github Action

@vytick vytick force-pushed the feat/native/beter-token-definitions-whitelist branch from 6006606 to ee02425 Compare November 6, 2024 11:53
@@ -193,6 +197,15 @@ export const selectDeviceEnabledDiscoveryNetworkSymbols = memoizeWithArgs(
{ size: 2 },
);

export const selectTokenDefinitionsEnabledNetworks = memoize(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the selector name, it's not obvious what is being selected... Token definitions or enabled networks? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just kept the name used elsewhere

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's confusing but if it's used elsewhere... 😏

Copy link
Contributor

@yanascz yanascz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work fine! 💪

@vytick vytick merged commit 12a76ec into develop Nov 6, 2024
69 checks passed
@vytick vytick deleted the feat/native/beter-token-definitions-whitelist branch November 6, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants