TRPC procedures like API
I really like the procedures in TRPC where you can create different procedures like
adminProcedure
, userProcedure
, publicProcedure
. But I think with server functions I have to use the .middleware([adminMiddleware])
in each server function, which is kind of a boilerplate! Are there anything similar to TRPC procedures planned for Tanstack Start?1 Reply
conscious-sapphire•5mo ago
At the moment is not possible to create abstractions over createServerFn declarations so I think adding middlewares is the only way