suppose you have a button, you want to do login, and after that doing some afterward functions.
using a useLogin for login + doing something afterward is abit odd.. developer will be like, i can't achieve this. (it's just for doing login, i can't control afterward.).
(if it's just login, it may work, but suppose it's part of a flow. currently there is no function for loginWithGoogle manually to use it on code.)
(A normal function can be exposed on custom hooks. I think mutation is a special name for doing some stuffs wit data, so it's relevant to react query.)
Hey. Please follow this approach insted (for useGoogleLogin):
suppose you have a button, you want to do login, and after that doing some afterward functions. using a
useLogin
forlogin + doing something afterward
is abit odd.. developer will be like, i can't achieve this. (it's just for doing login, i can't control afterward.).(if it's just login, it may work, but suppose it's part of a flow. currently there is no function for loginWithGoogle manually to use it on code.)
(A normal function can be exposed on custom hooks. I think mutation is a special name for doing some stuffs wit data, so it's relevant to react query.)