hyperweb-io / hyperweb-io/cosmos-kit
fix useChain
Open
- Dominant language
- TypeScript
- Stars
- 201
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
useChain is not correctly picking up all events.
Consider
> ....
> const {address} = useChain("cosmosHub")
> return
{address}
> ....
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
> useEffect(() => () => setRefreshKey(refreshKey + 1), [chain, chainName])
is not working
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.