zeta-chain / universalkit

UniversalKit by ZetaChain provides a set of React components designed to make building universal applications easier.
https://www.zetachain.com/docs/developers/frontend/universalkit/
MIT License
3 stars 2 forks source link

Having to use `WagmiProvider` twice #12

Open fadeev opened 1 month ago

fadeev commented 1 month ago

We have have to use WagmiProvider and QueryClientProvider twice.

One in the template:

https://github.com/zeta-chain/template/blob/488b4ac49bb1d87525eea3eeab0f59802c00e447/web/src/app/providers.tsx#L36-L37

And one in the UniversalKit:

https://github.com/zeta-chain/universalkit/blob/ab34040c9d403ecc842956b4730abc5bfdf06c78/src/providers/UniversalKitProvider.tsx#L72-L73

If we simply remove WagmiProvider from the UniversalKit provider it stops working. This feel like a hack and we should somehow refactor UniversalKit and/or the template, so that WagmiProvider and QueryClientProvider are used only once.

fadeev commented 4 weeks ago

Assigned to @lukema95