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
-
Currently, when using
useInfiniteQuery
, thepageParam
only 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
last
is given, I do> cursor
(next), otherwise I do< cursor
(previous).The work around I found was returning an array with the
isNext
value:Beta Was this translation helpful? Give feedback.
All reactions