Created
July 13, 2022 15:01
-
-
Save polluterofminds/cef318dff677a8d4359fae88ecee80c2 to your computer and use it in GitHub Desktop.
WAGMI Provider in Next.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SessionProvider } from "next-auth/react" | |
import "../styles/globals.css" | |
import { WagmiProvider } from "wagmi" | |
export default function App({ Component, pageProps }) { | |
return ( | |
<WagmiProvider autoConnect> | |
<SessionProvider session={pageProps.session} refetchInterval={0}> | |
<Component {...pageProps} /> | |
</SessionProvider> | |
</WagmiProvider> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment