T
tRPC

Difference in type inference for vanilla client?

Difference in type inference for vanilla client?

JFJack Fischer11/16/2022
Hello, querying an endpoint with the vanilla tRPC client but at runtime the actual result isn't the inferenced type but {json: ..., meta: ...}, am I doing something wrong?
UUUnknown User11/16/2022
Message Not Public
Sign In & Join Server To View
JFJack Fischer11/16/2022
Ah ha yes! We do have superjson and are on V9
UUUnknown User11/16/2022
Message Not Public
Sign In & Join Server To View
JFJack Fischer11/16/2022
Fantastic, that was it. Thanks Yeah turns out I had done that in a subtle place for the hooks but not the vanilla client 🤦‍♂️

Looking for more? Join the community!

T
tRPC

Difference in type inference for vanilla client?

Join Server
Recommended Posts
Zod Error MiddlewareHey lovely people. At Cal.com we make heavy use of `zod` for data validation. I was wondering if theclear cookie onErrorI'd like to clear a cookie (in nextjs) when a 403 error happens. I've been looking at the global errRequest context from getServerSidePropsThe docs of tRPC context https://trpc.io/docs/v10/context ``` export async function createContext(oAuth with passport.jsEvening all, Has anyone successfully setup trpc with passport.js for auth?Object keeps getting overwrittenI feel like i'm missing something fundamental here. when I add a new entry into object ``b`` it resAccessToken for API callsWhat would be the best approach to pass the AccessToken from NextAuth Session to the Http Client whiRequest or Response Specification Definition DocumentI am developing a backend service using trpc, but I need to dispatch trpc in another programming lanabortOnUnmount config errorI'm encountering an error when passing abortOnUnmount saying that it does not exist as a possible pazustand + trpc (basic data fetching)im trying to use zustand with trpc, but having trouble setting some data to global state. What am i TypeError Cannot destructure property 'abortOnUnmount' of 'useContext(...)' as it is null.Zero Clue what is error mean exactly....First time learning trpc really good tool. help with setting cookies on front end.Hello how do you use tRPC to make a cookie and send it to the front end. or is there any other methoHow do we add settings in each query like before?Since the new update, bee super confused. I used to do this, and can't recreate it now. ``` const