Replies: 1 comment
-
we need access to the key because skipToken only sets |
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.
-
Hello. I have a query written like so:
The
queryOptions
helper is handy for wrapping up thequeryFn
and thequeryKey
, and I understand that I can use logic inside the above definition to addskipToken
to the query function, but it seems like it would be much cleaner to useskipToken
or something similiar within theuseQuery
, only where applicable - rather than to always define conditions for skipToken inside thequeryOptions
helper.Like so:
NOTE: I'm in typescript and cannot use the enable field on the query options
Beta Was this translation helpful? Give feedback.
All reactions