VGLoic / metamask-react

A simple Context provider and consumer hook in order to provide a simple API for interacting with MetaMask in the browser
MIT License
136 stars 24 forks source link

Manually connect to site doesn't trigger account and status update #37

Closed EugeneSnikhovskiy closed 1 year ago

EugeneSnikhovskiy commented 1 year ago

What version of React and MetaMask-React are you using?

What is the current behavior?

const { account, connect, status } = useMetaMask();

connect method works correctly and update account and status, but when I open metamask extension in chrome and choose manual connect to current site - account and status is still has null/"notConnected" values

What is the expected behavior?

Manual connection to site should trigger update for account and status values

VGLoic commented 1 year ago

@EugeneSnikhovskiy! Thanks a lot for this issue!

I did not know this option in MetaMask! I'm gonna try to take a look this week-end :)

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 2.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

EugeneSnikhovskiy commented 1 year ago

Wow. This is so cool. Thank you so much for really fast support :)

VGLoic commented 1 year ago

My pleasure, thanks for taking the time to fill the issue :)