Spreading pageParams on the generator side #1598
vitorcamachoo
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This request comes after an attempt of using only the |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been checking the documentation to understand how pagination queries work through the generated process.
Sadly I found that for most of the founded use cases, the pageParam is being used as a Primitive and not as an object.
By using it as an object, we could have a generic approach and leave the responsibility to what getPreviousPageParam and getNextPageParam return, for example:
And on the generation part:
Beta Was this translation helpful? Give feedback.
All reactions