Replies: 1 comment
-
The docs say:
and that is correct. If you leave out the queryFn, but you haven't defined a default queryFn somewhere, your query will go into error state with the |
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.
-
Documentation states that
queryFn
is required https://tanstack.com/query/latest/docs/react/reference/useQuery#:~:text=QueryFunctionContext)%20%3D%3E%20Promise%3CTData%3E-,Required,-%2C%20but%20only%20ifHowever, I use it without
queryFn
#6532 (comment) and works fineBeta Was this translation helpful? Give feedback.
All reactions