-
Any chance we could get the type of This would make it a lot easier to handle the typings when doing SSR specifically: const Page = ({posts})=>{
const query = useQuery({
initialData: posts
})
query.data // this is typeof posts | undefined, why not just typeof posts?
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
that was contributed some time ago - we have tests for this: query/packages/react-query/src/__tests__/useQuery.types.test.tsx Lines 7 to 24 in 9be63f4 |
Beta Was this translation helpful? Give feedback.
that was contributed some time ago - we have tests for this:
query/packages/react-query/src/__tests__/useQuery.types.test.tsx
Lines 7 to 24 in 9be63f4