File upload, hide upload dialogue after mutation
As you can see, I'm trying to convert a file into base64, then send it to the backend as a mutation, then after a backend operation on the file, I want to hide the dialogue. Usually here I would use .then , but it appears I cannot here.
5 Replies
( ignore second "hideStateSetter(false)" )
mutate isnt a async operation
mutateAsync is
my days im stoopid
Thanks 🙂
Out of intrest, when would anyone use mutate?
is more of a react query approach
as you can use functions on the mutation result
without using .then() or .catch()
aah cool, thanks!