kapitanluffy
tRPC & Next.js confused about error
For context, trpc does not officially support Nextjs App router. Instead of wrapping your component in trpc's HoC, you can create a client component provider and wrap your app with it.
Look here https://github.com/trpc/trpc/issues/3297#issuecomment-1423905894
12 replies
tRPC & Next.js confused about error
try to read about server components. for context, all components under app/ are server components, adding interactivity such as useState requires it to be a client component. that is why it says you need to add a "use client" at the top of your component file
12 replies