-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Describe the bug
** Documentation error (not production bug**
useQueries code example has [ ] instead of ( )
replace
const ids = [1,2,3]
const results = useQueries({
queries: ids.map(id => [
{ queryKey: ['post', id], queryFn: () => fetchPost(id), staleTime: Infinity },
]),
})with
const ids = [1,2,3]
const results = useQueries({
queries: ids.map(id => (
{ queryKey: ['post', id], queryFn: () => fetchPost(id), staleTime: Infinity },
)),
})Your minimal, reproducible example
online
Steps to reproduce
Expected behavior
()
How often does this bug happen?
Every time
Screenshots or Videos
n/a
Platform
web
Tanstack Query adapter
react-query
TanStack Query version
v5
TypeScript version
v4
Additional context
I'm happy to submit a PR if one hasn't been submitted already
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation