Way to get queryKey in the result of useQuery #1878
-
Is there a way to get
We have use case to map
That's really painful since TypeScript will throw the error on the type definition, and we have to enforce its type to be
Any idea would help. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hm, I don't really understand the use-case, but what you can do is:
and then data will just have the queryKey ... |
Beta Was this translation helpful? Give feedback.
hm, I don't really understand the use-case, but what you can do is:
and then data will just have the queryKey ...