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 web3-react docs #234

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Update web3-react docs #234

merged 2 commits into from
Aug 10, 2023

Conversation

Lbqds
Copy link
Member

@Lbqds Lbqds commented Aug 10, 2023

No description provided.

// 1. balance: the current balance
// 2. updateBalanceForTx: used to update the balance when the user makes a transaction.
const { balance, updateBalanceForTx } = useBalance()
const { updateBalanceForTx } = useAlephiumBalanceContext()
Copy link
Member

Choose a reason for hiding this comment

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

Should we use useBalance instead of using context here? Otherwise, the first balance query will not be triggered

Copy link
Member Author

Choose a reason for hiding this comment

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

Just found that useBalance only returns balance 😓, do we need to fix this in sdk?

@polarker polarker merged commit 3fe2b3e into master Aug 10, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants