Eternal Mori
Eternal Mori
Explore posts from servers
TtRPC
Created by nitestack on 8/26/2023 in #❓-help
Next.js app router + TRPC...how to set it up?
See the code from the T3 Turborepo. https://github.com/t3-oss/create-t3-turbo
7 replies
TtRPC
Created by Maj on 6/9/2023 in #❓-help
trpc with app dir nextjs
11 replies
TtRPC
Created by PotatisMannen on 6/18/2023 in #❓-help
how does one actually make trpc/client work with the app router
3 replies
TtRPC
Created by Eternal Mori on 4/21/2023 in #❓-help
Can you get the queryClient without using a hook?
I forgot to add that I am using it with NextJS, I have a withTRPC wrapper in my App. Is there a way to extract the queryClient from there?
7 replies
TtRPC
Created by Eternal Mori on 3/8/2023 in #❓-help
How to get response type depending on the input params?
I already checked this page in the docs, but this does not describe my use case (https://trpc.io/docs/infer-types)
6 replies
TtRPC
Created by Eternal Mori on 3/7/2023 in #❓-help
How to infer types from input?
I think this is only for getting the response- or the input types. What I want for example:
const {.data } = trpc.example.useQuery(['one', 'two'])

// type of data variable
// readonly ["one", "two"] <- infered from input
const {.data } = trpc.example.useQuery(['one', 'two'])

// type of data variable
// readonly ["one", "two"] <- infered from input
3 replies