TRPC vanilla queries (T3 stack)
Does anyone know how to access trpc vanilla queries (not hooks)?
2 Replies
you needt o make a vanilla client https://trpc.io/docs/v9/vanilla
Vanilla client | tRPC
The magic of tRPC is making strongly typed API calls without relying on code generation. With full-stack TypeScript projects, you can directly import types from the server into the client! This is a vital part of how tRPC works.
I've actually done this myself due to not understanding react query so here's a link to my code to yoink https://discord.com/channels/966627436387266600/1126684886745485333/1126753035150962738