TypeScript errors for createQuery(options, queryClient)
If I do the following:
I have no error in TS. But if I change the last line to:
the typescript errors out expecting
initialData
to be set and ignores the non intiailized version of the type. I need to pas sin the query client since this happens outside the routing tree and contexts.
5.4.5 typescript.1 Reply
cloudy-cyanOP•16mo ago
I can just use
queryClient.fetchQuery({...})
can't I. doh