Open fadeev opened 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.
WagmiProvider
QueryClientProvider
Assigned to @lukema95
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 thatWagmiProvider
andQueryClientProvider
are used only once.