v10, passing useQuery options, queryKey mandatory?
I have a simple query like this
which results in an error
Property 'queryKey' is missing in type ...
. So I have to pass the queryKey eventho it should be automatically generated?Solution:Jump to solution
hm, anyways it seems to work now, maybe a restart of VS code. I will close as solved
3 Replies
if you've installed react query v5 with trpc v10 this error will ocur. Make sure that you have v4 of tanstack query installed
Oups, my mistake, I meant v11
Solution
hm, anyways it seems to work now, maybe a restart of VS code. I will close as solved