Replies: 1 comment
-
hooks don’t work that way, so this is not possible. If you really want to use a query for this, you have to:
However, signin is almost always a mutation. It logs the user in, so it must create a token or a cookie or some server session. And you don’t want refetches to happen here - this would log the user in again. I think you need to decouple this a bit:
|
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.
-
Getting below error:
My Sign In Form
I have seen suggestions that say
useMutation
instead and invokemutate
callback function but this is a GET call, souseQuery
is more appropriate in this case.Beta Was this translation helpful? Give feedback.
All reactions