T
TanStack•4y ago
genetic-orange

Am I using `useQueries` wrong here?

It seems like the type that's coming out of useQueries is ending up as any for me.
No description
2 Replies
deep-jade
deep-jade•4y ago
just try to leave out the type annotation and write it like it were javascript 🙂 if clientInstance.getUser is typed, everything should be inferred the optional chaining on clientInstance?.getUser is a bit troublesome because the queryFn shouldn't return undefined!
genetic-orange
genetic-orangeOP•4y ago
Oh I see gotcha thanks for the tip

Did you find this page helpful?