T
TanStack3y ago
narrow-beige

correct way to call query inside a function

i want a user to be able to sign after they have a clicked a button but i get a hooks error. can anyone help with this?
No description
No description
No description
2 Replies
adverse-sapphire
adverse-sapphire3y ago
Hi, login process is often considered as a "mutation" not a "query". You should be able to find messages about this here. About your question, what you need is to call imperatively the query, for ex using queryClient.fetchQuery
narrow-beige
narrow-beigeOP3y ago
Thank you!

Did you find this page helpful?