Sandvich
Why deprecate experimental_standaloneMiddleware?
Any reason why you're using standalone middleware instead of regular middleware?
Standalone is just for using the same middleware across different tRPC instances but it sounds like you're using one router and many procedures?
5 replies
I want to create a wrapper for TRPC.init but I can't seem to get the context type correct.
You do
Awaited<typeof createContext>
but createContext isn't async so that doesn't do anything.
I'd recommend just starting over with initTRPC.context<{test: string}>.create(...);
and keep building up slowly to the more complex type you have until you find the error you made9 replies
Best practices in naming and defining procedures when they don't fit into standard buckets?
Sorry to hijack this thread but this looks like a cool idea.
I scaffolded out how that might look to create many procedures and this just looks really nice
You could argue there's some duplication in key name and method name but I think it's fine
26 replies