-
Notifications
You must be signed in to change notification settings - Fork 133
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 useChain #361
Comments
local storage items are also not correct updated (i.e. no change) on account change |
interestingly, useChainWallet does not suffer from the same issue and always picks up account changes correctly. That's a clear indication that the useChain hook is broken |
@Sen-Com What did you do to cause |
I tried countless things to make this work and all lead to the same issue: the useChain hook is not registering account changes correctly.
|
I still cannot reproduce it. Are you using the latest version of CosmosKit? Maybe you can also try these steps in our doc site. https://docs.cosmoskit.com/#try-it-out I'm using Keplr extension to test and everything works fine. Or, can you make a simple example repo to reproduce it? |
Yes, I have the same issue with nextjs page. And It even can not track when i use dynamic import |
useChain is not correctly picking up all events.
Consider
If I connect and change accounts, it works.
If I then re-connect and change accounts it does not pick up any account changes, i.e. I change account and the address does not change.
The bug is also in production, i.e. Osmosis frontend.
even forcefully refreshing the component a la
is not working
The text was updated successfully, but these errors were encountered: