Any examples how to fire each useMutation to get get individual status in Vue 3?
I'm working on a use case where I need to upload multiple files at once. The process generally works, but there's a problem. If I upload, say, 10 files, they are stored in an array which, then processed one by one in a loop using mutate while checking
isPending
. This means I have to wait for all 10 files to finish uploading before they are displayed in the UI.
Instead, I'd like each file upload to be treated as a separate network request, rather than grouping them into a single batch. This way, each file could display individually as soon as it finishes uploading.
I've searched online, including checking GitHub discussions, to find a solution or technique to handle this, but I haven't been able to find anything that works.
Appreciate if anyone could give me a short demo or articles how to solve the issue I have.0 Replies