Replies: 2 comments
-
I also got no type inference when mapping over an array and using the same queryFn, so I think it's not specific to two different query functions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a known drawback with the current types approach, but I plan on revisiting it post v3 launch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When using useQueries with two queries of different return values, its return type defaults to QueryObserverResult<unknown, unknown>[] .
To Reproduce
Check the function useQueriesTypeIssue in https://codesandbox.io/s/restless-dust-ifoc9?file=/src/App.tsx .
Expected behavior
The return type of useQueries should be based on the type of the query functions passed in arguments.
Desktop (please complete the following information):
Additional context
Was asked to file a bug after a discussion in the official Discord.
Beta Was this translation helpful? Give feedback.
All reactions