TaylorFay
TaylorFay
TtRPC
Created by TaylorFay on 1/12/2024 in #❓-help
trpc output dates are typed as strings and not dates
If it helps, I have a Next13 app using the app router. I don't believe @trpc/next works on the app router, so I'm using '@trpc/react-query'
9 replies
TtRPC
Created by TaylorFay on 1/12/2024 in #❓-help
trpc output dates are typed as strings and not dates
Yes. client
const [trpcClient] = React.useState(() =>
trpc.createClient({
transformer: superjson,
links: [
httpLink({
url: absoluteUrl('/api/trpc')
})
]
})
);
const [trpcClient] = React.useState(() =>
trpc.createClient({
transformer: superjson,
links: [
httpLink({
url: absoluteUrl('/api/trpc')
})
]
})
);
server
const t = initTRPC.context<typeof createContext>().create({
transformer: superjson
});
const t = initTRPC.context<typeof createContext>().create({
transformer: superjson
});
9 replies
TtRPC
Created by TaylorFay on 12/19/2022 in #❓-help
Is it possible to call one procedure in another?
Oh thanks, so we can use createCaller within other procedures?
7 replies