You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey! I'm having trouble with the typings while abstracting the
useMutation
into a custom hook.I want to be able to to this:
To then be able to use the
useLoginMutation
in another components, without having to write the method verb and endpoint all the time.Currently I am trying this for the options type, unsuccessfully
UseMutationMethod<paths, <"post", "/api/auth/login/">>
Beta Was this translation helpful? Give feedback.
All reactions