Hello,
I have 2 queries which i'm trying to run in Parallel. After having read the docs, it mentioned that i need to use useQueries since i'm using react-query with suspense.
I'm having a hard time adapting my code to useQueries - the syntax is confusing me quite a bit.
In my code, i already have 2 similar custom useQuery wrappers, which look as follows:
export const useTournamentTypes = () =>
useQuery([queryKeys.tournament_types], getTournamentTypes)
export const useCheckIns = () =>
useQuery([queryKeys.checkIns], getCheckIns)
How do i pass my 2 custom hooks to useQueries?
Thanks in advance~