3 Replies
i guess whenever we are defining a saperate proccesor we have to use "use"
They're for middlewares https://trpc.io/docs/server/middlewares
Middlewares | tRPC
You are able to add middleware(s) to a procedure with the t.procedure.use() method. The middleware(s) will wrap the invocation of the procedure and must pass through its return value.
thank you