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

Refactor usages of useWallet to use useProfile where possible #1744

Open
NoahSaso opened this issue Mar 7, 2024 · 0 comments
Open

Refactor usages of useWallet to use useProfile where possible #1744

NoahSaso opened this issue Mar 7, 2024 · 0 comments
Labels
tech debt Tech debt that needs to be paid

Comments

@NoahSaso
Copy link
Member

NoahSaso commented Mar 7, 2024

Now that users register accounts on their profile, we don't need to ask the wallet to connect every time we want to fetch the address or public key for a given chain. We can replace a lot of useWallet usages with useProfile to make the UI faster and lessen dependence on the wallet. This is especially relevant when using mobile wallets, since the UI will often randomly open the mobile wallet to connect to a chain in order to retrieve an address.

@NoahSaso NoahSaso added the tech debt Tech debt that needs to be paid label Mar 7, 2024
@NoahSaso NoahSaso changed the title Refactor usages of useWallet to use useProfile when possible Refactor usages of useWallet to use useProfile where possible Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech debt Tech debt that needs to be paid
Projects
None yet
Development

No branches or pull requests

1 participant