Closed Redm4x closed 10 months ago
Bump
a new feature addEndpoints
as been added in the latest version @cosmos-kit/react@2.9.14
you can follow the example code here https://github.com/cosmology-tech/cosmos-kit/blob/main/packages/example/pages/endpoint.tsx
a new feature
addEndpoints
as been added in the latest version @cosmos-kit/react@2.9.14you can follow the example code here https://github.com/cosmology-tech/cosmos-kit/blob/main/packages/example/pages/endpoint.tsx
This is gold and one of the much needed features in Cosmos for decentralization and less dependency on centralized infrastructure. Nice job guys.
It looks like the
<ChainProvider>
props cannot be changed after the first render. I am asynchronously loading the preferred rpc endpoint (from user settings) and then trying to set theendpointOptions
prop, but it is not used during new transactions. It always uses what was set during the first render. I am guessing it is caused by theuseMemo
in provider.tsx, but I could not find a workaround. Is there a way to updateendpointOptions
after the first render?