T
tRPC

Data from useQuery is inferred as data: {} | undefined

Data from useQuery is inferred as data: {} | undefined

Zzirkelc5/22/2023
My server query returns data from database via ElectroDB. TypeScript can statically infer all properties. However, on the client, the returned data is always inferred as data: {} | undefined.

Looking for more? Join the community!

T
tRPC

Data from useQuery is inferred as data: {} | undefined

Join Server