-
I found that there are two types for data useQuery<TData = unknown, TError = unknown, TQueryFnData = TData>;
QueryOptions<TData = unknown, TError = unknown, TQueryFnData = TData>; And when will the two types be different? |
Beta Was this translation helpful? Give feedback.
Answered by
boschni
Dec 18, 2020
Replies: 1 comment 7 replies
-
They have actually been switched in the latest release. But |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
NewFuture
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They have actually been switched in the latest release. But
TQueryFnData
is the data returned from your query function, andTData
is the eventual data. The eventual data can be different from the query function data when usingselect
for example.