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
.![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1110147596334403635/2023-05-22_11-54-08.jpg)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1110147596711899147/2023-05-22_11-54-45.jpg)
0 Replies