hagabaka
Procedure with generic input?
Never mind, should have read https://discord.com/channels/867764511159091230/1076696387107967017
4 replies
Typed wrappers for procedures
I have a mini library that used to have only functions that make fetch calls, and now I'm adding an TRPC API. I want to keep the exports consistent so prefer to export functions for the individual procedures instead of a TRPC client. Also I want the client to be lazily created when any of the procedures is used.
15 replies
Typed wrappers for procedures
I don't understand
DecorateQuery
used in that function. Seems to be this gigantic type defined here https://github.com/trpc/trpc/blob/19c7c27d8ed548b2bc7ab5eb921fd179143aa230/packages/react-query/src/createTRPCReact.tsx#L8715 replies