Reactjs – Conditional tRPC v10 fetch with useQuery and required parameters
I'm trying to understand how to use the @tanstack/react-query integration for tRPC when I have conditional fetches that have required parameters. For example, say I have this backend: // Backend export const t = initTRPC.create(); export const appRouter = t.router({…