How to manage custom errors (e.g. custom error codes) in tRPC?
typesafe permissions
awaiting for procedure & logging the response.
createCaller Dependency Injection in Middleware ctx ?
createCaller
makes it really easy to inject dependencies via anything that's created during the createContext
function:
router.createCaller({ someClient: mockClient});
router.createCaller({ someClient: mockClient});
best practices for organizing routes/procedures?
Validating input inside middleware declaration
Fetch errors on stale pages
How to use querykeys from react-query
Distribute typesafe tRPC Client in an NPM library
Websocket is not defined error
@trpc/server in a non-server environment Error in Azure CI
How are people handling authorization?
trpc-shield
are gone from the documentation. Also, it only has 200 stars on GH, which is not that much when compared to tRPC itself. So I would be interested in how you're are handling authorization when using tRPC?Vitest context router caller
basequery state changing cause infinite rerender

WebSocket connection hangs after significant amount of data passed through the connection.
Trpc Vanilla client producing ts errors

Cannot read properties of undefined (reading 'data') of res.error.data, when trpc errors out
@trpc/react-query
alongside trpc
for express, and I am experiencing a crash when I have an error
```
debug: Server listening on port: 3000 at development mode
error: ERROR OCCURED: '[\n' +...Is there an example of a real world non trivial app?
How to organise output types?
users.get
, users.getAll
, posts.get
(as Post.author
), etc.) all need the same extra fields that can't come directly from Prisma (e.g. "the last post from the user" or "whether one can delete this user"); what's the best way to extract and reuse the logic for these fields?
- How to mask output types (e.g. make sure that I don't return User.passwordHash
ever)...