-
|
I'm not sure this is a bug report or not but the question is why pageParams initial item is undefined? I expect it to be 1 and not undefined. I'm preparing a simple example of using React Query and Graphql and the demo is here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
That is why we assign a default value in the example: in that case, |
Beta Was this translation helpful? Give feedback.

pageParamis derived from the previous page viagetNextPageParam. Since the first page has no previous page, what else should it be?That is why we assign a default value in the example:
in that case,
undefinedgets coerced to0