Uniswap / web3-react

A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
https://web3-react-mu.vercel.app/
GNU General Public License v3.0
5.5k stars 1.52k forks source link

Nextjs 13 Server Component Support #693

Closed davidthomasparks closed 1 year ago

davidthomasparks commented 1 year ago

Next.js has just released version 13, which includes support for React Server components.

However, since web3-react needs to wrap the entire layout in a Web3 provider, you need to opt into using a client component with use client essentially nullifying the use of server components downstream in the entire app.

Are there any plans to support not needing a provider for the application, or can you shed some light on possible workarounds to make use of react server components without having to wrap my entire app in a client component due to the Web3ReactProvider?

shlokkhemani commented 8 months ago

hey! how are you solving this?