Hobbs
Explore posts from serversQuestions 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 reference4 replies