cosmology-tech / cosmos-kit

Universal wallet connector for the Cosmos ⚛️
https://cosmology.zone/products/cosmos-kit
BSD 3-Clause Clear License
184 stars 136 forks source link

Missing useChain export #161

Closed ghost closed 1 year ago

ghost commented 1 year ago

The latest version of @cosmos-kit/react doesn't export the useChain hook anymore, breaking my build.

I suspect the reason is because its been moved to react-lite, and react is supposed to export everything from react-lite. But the export statement export * from '@cosmos-kit/react-lite/src/hooks';, looks wrong. I believe it should be exporting the built directory.

pyramation commented 1 year ago

where is the export * from '@cosmos-kit/react-lite/src/hooks'; statement?

pyramation commented 1 year ago

yea we should remove this https://github.com/cosmology-tech/cosmos-kit/blob/9e064d9d837ea4480b25ec6c74097ab6a7562366/packages/react/types/index.d.ts#L1

cc @liujun93 exporting from src/ is wrong because it doesn't currently have the types there. We should only export things directly

liujun93 commented 1 year ago

@0xArbi Fixed in the latest version. Thanks