zirkelcZ
tRPC3y ago
zirkelc

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

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.
2023-05-22_11-54-08.jpg
2023-05-22_11-54-45.jpg
Was this page helpful?