useInfiniteQuery throws Cannot read properties of undefined (reading 'length') #7455
Unanswered
korsunrodion
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Don't know the cause, but changing queryKey solved the problem |
Beta Was this translation helpful? Give feedback.
2 replies
-
After upgrading from version 4 to version 5, we also began encountering this issue. We checked our query key, which is used only once in the useInfiniteQuery method, but it is used more than once during manual cache updates using the setQueryData method. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I have this code:
But an error is thrown in React-query's internal method, and getNextPageParam I passed as a prop doesn't seem to be called.
I don't see any errors in my code. I'll appreciate any help, thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions