Luka
Explore posts from serversTRPC with Turborepo Nextjs
Do you guys usually put trpc inside the nextjs project or have it outside as a separate package/service?
I've seen some people put the whole trpc in a package of its own and just import the api object in nextjs from the package. wondering what are the advantages and disadvantages of the either way
3 replies
React Query client and caller client under one object
Would love to know if it is possible to have caller and react query clients under one object?
I feel like it would be great to go api.cart.getCartItems() in server components that would utilise caller and api.card.getCartItems.useQuery() in client components.
5 replies