Open Sen-Com opened 10 months ago
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 re-connect
? Usually Reconnect
button shows up when you failed to connect, i.e. connection rejected by wallet. I tries this and reconnect, switch account still works. Is this not the re-connect
you mentioned? can you list the exact steps so that we can reproduce the issue?
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?
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