Replies: 1 comment
-
|
we do pass the direction is: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Currently, when using
useInfiniteQuery, thepageParamonly gives the cursor value, but nothing about the direction it should be used.I'd like to do something like the following:
In the backend, if
lastis given, I do> cursor(next), otherwise I do< cursor(previous).The work around I found was returning an array with the
isNextvalue:Beta Was this translation helpful? Give feedback.
All reactions