setQueryData doesn't give typehints #8490
Unanswered
88potatoes
asked this question in
Q&A
Replies: 1 comment
-
This can only work if you |
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
-
Hi I'd like some help please. My useQuery is typed but my setQueryData typing doesn't work.
So this is my useQuery.
Elsewhere in the application, I setQueryData and it gives type unknown.
If it helps, my
queryKeys
looks likeI was under the impression that you got type hints if the queryKey was a const.
Any help would be awesome.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions