Extending 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.
1 Reply
Alex / KATT 🐱
Oops, looks like we merged that but haven't published 🏃🏼 Available in v10.10.0