Mutate instantly returning success instead of isLoading
I have been working on this endpoint that uploads files do Google Drive. It can upload one or multiple files, so I iterate through the file list and await for each upload, so I don't spam Google's Api.
My problem is that no matter what I do, the response is always instantaneous, but I don't see how this makes any sense.

4 Replies
This is where I do the onSuccess

Anyone has any idea why this is happening?
Solution
Welp turns out I had to do the obvious: return promise to resolve all :p
Also don't use images to show code