Mutate send response
Not sure if im being stupid or what, is the best way to pass back the response using useState or is there a easier way for me to access the response. Also any advice to clean up the code is appreciated š
2 Replies
correct-apricotā¢2y ago
it's available in
data
returned from useMutation
š
harsh-harlequinOPā¢2y ago
Wait what am I really that dumb, i didnt even realise there was a data...
š¤¦āāļø
Wow im sorry for even asking that questions, thanks though!