useMutation for creating object to use with POST
i am trying to make a simple input field that takes an input and on a button click / submit it adds the data to an object so that it can be used with useMutation to send it with a POST request.
i am quite stuck as i cannot really find a good source yet how to handle this (might also be that i cannot formualte the qeustion correctly)
i tried doing it like this post on Stackoverflow but not getting anywhere really i think
2 Replies
fascinating-indigoOP•10mo ago
my code looks like this (i have it already wrapped with the provider elsewhere as i can make get requests with the useQuery)
like-gold•10mo ago
Hey there. I'm a little lost on what you are trying to accomplish and why this isn't working. Can you explain what the code above it doing wrong, what the expectation is, and what is currently happening?