tRPCttRPC
Powered by
sh03S
tRPC•3y 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?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to organise output types?
sh03Ssh03 / ❓-help
4y ago
Reusable Component to take router as props / dependency injection. How to type?
BillyBobBBillyBob / ❓-help
3y ago