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

Fix/network change hooks #155

Merged
merged 2 commits into from
Dec 24, 2021
Merged

Fix/network change hooks #155

merged 2 commits into from
Dec 24, 2021

Conversation

Dhaiwat10
Copy link
Member

Closes #153
Closes #154

  • Refactored the connectWallet function because the value of connection wasn't being persisted. We were using the connection object as our 'provider' and hence it was throwing errors in methods like onNetworkChanage.

  • Also added an edge case inside accountsChanged to detect if no accounts are connected anymore.

@changeset-bot
Copy link

changeset-bot bot commented Dec 24, 2021

🦋 Changeset detected

Latest commit: ae8b943

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web3-ui/hooks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Dhaiwat10
Copy link
Member Author

There are also some unrelated formatting changes because of the recently updated prettier config.

@Dhaiwat10 Dhaiwat10 merged commit e611ef9 into main Dec 24, 2021
@Dhaiwat10 Dhaiwat10 deleted the fix/network-change-hooks branch December 24, 2021 17:46
@github-actions github-actions bot mentioned this pull request Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant