extending trpc middleware

When making a procedure with middleware, is there any difference between using .unstable_pipe() to extend an existing middleware and then .use() versus just .use() on an existing procedure using the existing middleware?
2 Replies
Mozart's_Ghost
Mozart's_Ghost10mo ago
Did you ever figure this out?
antoine
antoineOP10mo ago
I just ended up extending an existing procedure since it was less variables to name. As far as I know, with unstable_pipe you don't get the input type from a ProcedureBuilder if you want the type before extending middleware. I didn't have a specific use case for unstable_pipe as shown in the docs so I didn't use it
Want results from more Discord servers?
Add your server