-
I have some query hooks like const useOne = (id1) => useQuery({...})
const useTwo = (id2) => useQuery({...}) And I want to use it for parallel queries using useQueries, something like this const useQueries = (id1, id2) => useQueries([
useOne(id1),
useTwo(id2)
]) My example is correct or I can face problems here? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
May 16, 2024
Replies: 1 comment
-
no, you want queryOptions:
then use it with:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Lirrrx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no, you want queryOptions:
then use it with:
https://tkdodo.eu/blog/the-query-options-api