Typesafe config
#1898
-
Hey, I'm not sure how to achieve this https://wagmi.sh/react/typescript#declaration-merging when using default config by Rainbowkit. |
Beta Was this translation helpful? Give feedback.
Answered by
magiziz
Mar 30, 2024
Replies: 1 comment 4 replies
-
I think a solution more close to connectkit would allow this, where the import { WagmiProvider, createConfig, http } from "wagmi";
import { mainnet } from "wagmi/chains";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ConnectKitProvider, getDefaultConfig } from "connectkit";
const config = createConfig(
getDefaultConfig({
// Your dApps chains
chains: [mainnet],
walletConnectProjectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID,
appName: "Your App Name",
}),
); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep. Check it out here: #1893