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?



2 Replies
adverse-sapphire•3y 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.fetchQuerynarrow-beigeOP•3y ago
Thank you!