5 Replies
genetic-orange•3y ago
Just infer…
genetic-orangeOP•3y ago
@M00LTi can you provide a sample code?
genetic-orange•3y ago
The type will automatically be inferred
genetic-orangeOP•3y ago
understood basically type loginUser function and rest will be taken care of noice
@M00LTi thanks mate
if someone wants to know how here how
rare-sapphire•3y ago
useMutation will infer type from your mutateFn
please check typescript promise function return type