UseSuspenseQueryOptions data type infer question
hi guy I got some question for the hono rpc, and UseSuspenseQueryOptions from tanstack query
1 Reply
genetic-orangeOP•2mo ago
I return the data in the backend
return c.json({ glues: gluesWithDepartment }, 200)
when i get in frontend with, the createdAt and updatedAt is in string, so I use the map to make it as the Date Type
data type in frontend
when i try to use the UseSuspenseQueryOptions, the data type does not infer so i need to pass the promise
For the data type it is unknown unless i pass it, is there any way I no need to pass it?
Oh I should use the queryOption instead