Hobbs
Hobbs
Explore posts from servers
TtRPC
Created by Hobbs on 7/31/2024 in #❓-help
Questions around trpc with next.js app router
I have a few questions in wrapping my head around how to get it to work. Is withTRPC<AppRouter> still required? The docs show it: https://trpc.io/docs/v9/nextjs#5-configure-_apptsx but it looks like the example is around the pages router and not app router. I am using createTRPCNext<AppRouter> am I meant to use both createTRPCNext as well as withTRPC ? Below is some of my code for reference
4 replies