Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
4 replies
Liam

What is the difference between procedures and middlewares in TRPC?

Hello!

I was wondering what is the difference between procedures and middleware in TRPC. I know that procedures are used to build context and such but could you not also essentially do what is done in a middleware inside the procedure itself?

Thanks!
Was this page helpful?