Replies: 1 comment 1 reply
-
What your api returns and what your queryFn returns don't have to be the same thing ;) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
We have an API endpoint that returns 204 in some situations, but that makes useQuery unhappy and tells us the following
Query data cannot be undefined. Please make sure to return a value other than undefined from your query function
, but I am not sure how to resolve this issue. We would like to not return a 404 from the API.Does anyone have any ideas on how to resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions