Skip to content
\n

But an error is thrown in React-query's internal method, and getNextPageParam I passed as a prop doesn't seem to be called.
\n\"image\"
\nI don't see any errors in my code. I'll appreciate any help, thanks in advance.

","upvoteCount":4,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

you probably use that key already for non-infinite queries, see:

\n

https://tkdodo.eu/blog/effective-react-query-keys#caching-data

","upvoteCount":0,"url":"https://github.com/TanStack/query/discussions/7455#discussioncomment-9482616"}}}

useInfiniteQuery throws Cannot read properties of undefined (reading 'length') #7455

Answered by TkDodo
korsunrodion asked this question in Q&A
Discussion options

You must be logged in to vote

you probably use that key already for non-infinite queries, see:

https://tkdodo.eu/blog/effective-react-query-keys#caching-data

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@TkDodo
Comment options

Answer selected by TkDodo
@tomas-light
Comment options

@duynhat369
Comment options

@n3ps
Comment options

@um1chc5
Comment options

Comment options

You must be logged in to vote
3 replies
@TkDodo
Comment options

@Dysas
Comment options

@TkDodo
Comment options

Comment options

You must be logged in to vote
1 reply
@uy-scuti100
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants