Running server actions concurrently
Unanswered
Southern Martin posted this in #help-forum
Southern MartinOP
I'm trying to allow a user to kick off server actions concurrently from a UI. A user can enter a URL into an input box, press enter, enter another one, press enter. These URLs will take time (20 seconds) to finish. What I've noticed is that when I call the action a couple of times, I can no longer navigate using the Link component for some reason until some of the actions finish processing.
Does anyone know the proper way to send multiple actions concurrently? I'm also calling revalidatePath after these actions finish, so the solution would need to keep that in mind that I want the UI to refresh as these async processes are finishing.
Does anyone know the proper way to send multiple actions concurrently? I'm also calling revalidatePath after these actions finish, so the solution would need to keep that in mind that I want the UI to refresh as these async processes are finishing.