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.
Solution:
Welp turns out I had to do the obvious: return promise to resolve all :p
Jump to solution
4 Replies
deforestor
deforestorOP2y ago
This is where I do the onSuccess
deforestor
deforestorOP2y ago
Anyone has any idea why this is happening?
Solution
deforestor
deforestor2y ago
Welp turns out I had to do the obvious: return promise to resolve all :p
barry
barry2y ago
Also don't use images to show code
Want results from more Discord servers?
Add your server