Content pfp
Content
@
0 reply
0 recast
0 reaction

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
How does one add Providers in a next.js `app` structure application? This whole pattern seems a bit much.
1 reply
0 recast
1 reaction

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
You can add them to the root layout component.
1 reply
0 recast
0 reaction

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
Root layout is a server component, most providers don’t work there. Figured it out though lol
2 replies
0 recast
0 reaction

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
Yeah, you have to create your providers separately (good practice either way), but server components can import client components. I’m guessing that’s what you did?
1 reply
0 recast
0 reaction

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
Haha yes, I’m not as familiar with it’s the new ‘app’ structure
1 reply
0 recast
1 reaction

dinislam pfp
dinislam
@dinislam.eth
the hard part is hydrating the provider (ex when using react-query). I was looking into it a few months ago and it wasn't very clean. Hopefully that's improving soon
0 reply
0 recast
0 reaction