hyperweb-io / hyperweb-io/cosmos-kit

fix useChain

Open
#361 6 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.