Replies: 1 comment
-
Also, v3 does not spread the queryKey anymore :) |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a basic query, that I may update depending on a state. It works, but useQuery is passing a queryKey array to my fetch function, which is not ideal and clear.
Is it possible to immediately access a param such as name or id in the get() function?
EDIT: ok, I've just found out that you can use ()=> get(id) instead of get. Sorry for the inconvenience, you can delete the question.
Beta Was this translation helpful? Give feedback.
All reactions