Query Docs
AI/LLM: This documentation page is available in plain markdown format at/query/v3/docs/framework/react/reference/useQueries.md
API Reference
useQueries
The useQueries hook can be used to fetch a variable number of queries:
js
const results = useQueries([
{ queryKey: ['post', 1], queryFn: fetchPost },
{ queryKey: ['post', 2], queryFn: fetchPost },
])Options
The useQueries hook accepts an array with query option objects identical to the useQuery hook.
Returns
The useQueries hook returns an array with all the query results.