Calling a trpc endpoint inside of a trpc endpoint
getBotGuilds
and getUserGuilds
from within getAllGuilds
....Frozen input param
type mismatch between tRPC return (in sveltekit) and defined type
pre fetch serveral prodecures dynamically
procedure input context
Is it normal to separate resolvers from routers?
i have an infinite loop within my hook but apps works as expected.
trpc query running twice
tRPC Call To Server
Get count of stages assigned to user with stage name?
TRPC global loading page
.isFetched
property is false, it will display a "loading" symbol.
Currently I have to do something like this on every page:
```tsx...Multiple Clients/Services In tRPC Context
Use middleware to send response
dynamic router creation
The inferred type of 'routerForTable' cannot be named without a reference to '../../node_modules/@trpc/server/dist/core/parser.js'. This is likely not portable. A type annotation is necessary
...Type issue react query with enabled.
{ id: string }
to the useQuery was possibly null or undefined (because it comes from useParams() react-router hook for example) and the option on the useQuery was set to { enabled: !!id }
that by the time the call was made id
would indeed be a string. Now that we migrated to using trpc TS errors out and expects us to do sill...TRPCClientError: Unexpected end of JSON input
mutateAsync
in production in Vercel (the error does not appear in localhost dev mode).
TRPCClientError: Unexpected end of JSON inputMy code base is so large that I am not sure where do I start to debug. Are there any best practices that I should follow to avoid this error?...
Does useSuspenseQuery trigger suspense on just initial load or whenever it's fetching data?
Audit logging middleware?
All vanilla client queries fail with 500. Setup problem?
.input
is omitted the request URL is /api/trpc/generateRandomWorker?batch=1&input={"0":{"json":null,"meta":{"values":["undefined"]}}}
and returns a 500....