Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having to use WagmiProvider twice #12

Open
fadeev opened this issue Aug 8, 2024 · 1 comment
Open

Having to use WagmiProvider twice #12

fadeev opened this issue Aug 8, 2024 · 1 comment

Comments

@fadeev
Copy link
Member

fadeev commented Aug 8, 2024

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:

<WagmiProvider config={config || { autoConnect: true }}>
<QueryClientProvider client={client}>

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
Copy link
Member Author

fadeev commented Aug 15, 2024

Assigned to @lukema95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant