Zion
Zion
TtRPC
Created by Zion on 12/29/2023 in #❓-help
tRPC and vite serverless, are there any exmaples?
Now that tanstack router is out I would want to move out of nextjs, but keep the convenience of hosting on vercel with serverless. I saw that theres some vite-vercel plugin (vite-plugin-vercel) for SSG/ISR/serverless functions, but not sure how I would integrate it with tRPC. are there any exmaples for something like that?
21 replies
TtRPC
Created by Zion on 12/20/2023 in #❓-help
Using trpc with fastify server and nextjs client
Hello, is it possible to use fastify for server and have a nextjs client and make use of the SSG / SSR helpers? if so, what adaptor should I use in that case? is there any example for this?
4 replies
TtRPC
Created by Zion on 11/1/2023 in #❓-help
Help with inferring output
No description
9 replies
TtRPC
Created by Zion on 8/15/2023 in #❓-help
Get object type using UseTRPCQueryResult
this code
type playlistOutputData = UseTRPCQueryResult<
inferRouterOutputs<AppRouter>["notifications"]["getUserNotifications"],
TRPCClientErrorLike<AppRouter>["data"]
>["data"];

type InviteNotificationProps = {
notification: playlistOutputData;
};
type playlistOutputData = UseTRPCQueryResult<
inferRouterOutputs<AppRouter>["notifications"]["getUserNotifications"],
TRPCClientErrorLike<AppRouter>["data"]
>["data"];

type InviteNotificationProps = {
notification: playlistOutputData;
};
gives me an array of objects, I want to get the type only of the object and not the array of it, to have a component for it, how can I do it?
3 replies