sh03S
tRPC3y ago
24 replies
sh03

How to organise reusable functions

How do you guys organize functions that all need the same context (usually from tRPC)?
For example let's say that you have 10 functions you use multiple times across multiple routers and they all share the same context. Do you use a class?
Was this page helpful?