Possibility of infinite query getNextPageParam pages to be undefined #8214
Unanswered
ugurcanatas
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Also saw this PR. Steps to reproduce is not probably clear |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, we recently upgraded the React Query in our app to the newest version.
We started seeing this log after the upgrade from Datadog.
TypeError: Cannot read property 'length' of undefined
Error line/column points to the
getNextPageParam
definition in our minified bundle(from codepush).Is there a possibility of
pages
param ingetNextPageParam
beingundefined
?If so, In which cases can this happen and are there any recommendations on what/how to debug this problem?
PS: I also saw this discussion but I checked our codebase and didn't see anywhere where i am using the same key for Query and InfiniteQuery.
Beta Was this translation helpful? Give feedback.
All reactions