DI libraries and using Singletons in NextJS / T3?
Hey guys, I'm just curious if I'm using a Dependency Injection (DI) library within the T3 stack (using NextJS + TRPC), is there any benefit at all to using services as singletons?
Wouldn't my container definitions and everything basically just get restarted for every request, thus not really mattering since the same instance won't be used?
0 Replies