Accepting a DecoratedProcedure with inputs and outputs that extend some given types
useEffect and useMutation error about conditional rendering of hooks
Guide to create an adapter
Does tRPC websocket client supports wss protocol?
Get the type of context after middleware
adminProcedure
from
export const adminProcedure = publicProcedure.use(isAdmin)
?
https://trpc.io/docs/server/middlewares...[How To] Properly use trpc UseQuery based on currently selected item
const query = trpc.lesson.videoUri.useQuery(currentItem?.id as string, {
enabled: !!currentItem?.id,
});
const query = trpc.lesson.videoUri.useQuery(currentItem?.id as string, {
enabled: !!currentItem?.id,
});
Data from useQuery is inferred as data: {} | undefined
data: {} | undefined
.
Cannot access 't' before initialization
Cannot access 't' before initialization
when using the tRPC instance anywhere be it a middleware or router
The server is a standalone node server
useAuthenticaton.ts
...tRPC Middleware consuming memory limit on Vercel

Using react-query parameters in tRPC for useQuery
tRPC type error on turborepo
Types of property 'query' are incompatible.
Type 'inferHandlerFn<{}>' is not assignable to type 'inferHandlerFn<any>'.
Types of parameters 'path' and 'path' are incompatible.
Type 'TPath' is not assignable to type 'never'.
Type 'string' is not assignable to type 'never'.
Types of property 'query' are incompatible.
Type 'inferHandlerFn<{}>' is not assignable to type 'inferHandlerFn<any>'.
Types of parameters 'path' and 'path' are incompatible.
Type 'TPath' is not assignable to type 'never'.
Type 'string' is not assignable to type 'never'.
Stack for expo?
Implementing a "Prisma model converter middleware"
Senior Full Stack Developer is Ready.
Suggested way to invalidate queries on a component that is used on multiple pages.
Setting up trpc behind AWS API gateway and authorizing using a lambda
posts.list
(public) posts.create
(private)
- API gateway routes GET /trpc/{proxy+}
and POST /trpc/{proxy+}
that invoke a lambda handler for trpc (let's call it trpc.handler
)
...setMutationDefaults for optimistic updates
preferences
router, with a get
query and a set
mutation. I had optimistic updates set up in the onSuccess of the useMutation hook, wherever I used it, like this:
```ts
const preferences = api.preferences.get.useQuery();
const savePreferences = api.preferences.set.useMutation({...Using tRPC in React SPA with Django backend
Typing a shared TRPC provider for testing
Response promise resolves before endpoint finished processing