How to use skipToken
with useReadQuery
?
#9663
Replies: 1 comment
-
This is the TanStack Query repo, not apollo |
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.
-
Hey there,
I'm using
useBackgrounQuery
anduseReadQuery
withskipToken
.However, when the
skipToken
is passed,useBackgroundQuery
returnsundefined
as ref, which causesuseReadQuery
to throw a runtime error.I couldn't find a solution for the conditional
useReadQuery
call in the docs.Do you have any suggestions?
Here's the code, I'm using
@apollo/[email protected]
:Beta Was this translation helpful? Give feedback.
All reactions