I created some hooks to use in my components:
export function useSaStates() {
return useQuery(keys.saStates.queryKey, fetchSaStates, {});
}
export function useLaStates() {
return useQuery(keys.laStates.queryKey, fetchLaStates, {});
}
Can I use useQueries with these already created hooks, or do I need to define them in the useQueries itself?
Any insight would be helpful, thank you!