TRPCError that has TRPCError as cause
How do you make use of custom input validation?
Why useQuery() tries to refetch when error occurs while useMutation() doesn't?
test: publicProcedure.input(z.string().min(5)).query(async () => {
return "hi!";
}),
test: publicProcedure.input(z.string().min(5)).query(async () => {
return "hi!";
}),
const { error } = api.user.test.useQuery("test");
const { error } = api.user.test.useQuery("test");
In a monorepo can I have 2 packages each one with different trpc server, and use both in 1 app?
How to type a helper function to standardise loading and error states with a useQuery call?
data
to a function to render whatever is the happy path.
So something like this:
```ts...TypeScript Issue: router.createCaller Implicitly has Return Type "any"
Suspend subscriptions when app is in background
Callbacks in Consecutive Mutations
.useMutation
and only the last callback is fired
Is there any way around this with TRPC since I assume it's actually a wrapper around mutate
instead of .useMutation
?...
return type of a query endpoint

Troubleshooting 'Type Instantiation Is Excessively Deep' Error in Next.js Project with TRPC Integrat
procedure.input(z.object) is inferred as a partial (optional fields)?
input(z.string())
it is of type string
, but z.object()
properties come through as optional:strict: true
. Mine was set to strict, but apparently my nx integrated repo was not parsing the chain of extended configs correctly, so this small issue was just a symptom of a larger one. Zod just validated my environment 🤔
How to trigger revalidate after server action on a client component
trpc openapi api memory problem
Context being destroyed in mutator
Optimizing Data Refresh with trpc in React/Nextjs? Is there a more efficient way?
cors
readingbee.se/:1 Access to fetch at 'https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn' from origin 'https://readingbee.se' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
readingbee.se/:1 Access to fetch at 'https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn' from origin 'https://readingbee.se' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
Showing pending inside the request?