#correct way to call query inside a function

3 messages · Page 1 of 1 (latest)

topaz storm
#

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?

#

correct way to call query inside a function

polar dew
#

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