I have some very long running server actions (some take a few minutes). This long time is not a mistake, there is just a lot of data to get.
What I want is a percentage loading bar while this server action runs, counting up from zero to 100%. This might be difficult as there might not be an exact way to predict how long the server action will run. But I’ve seen this in other applications before, so it must be technically possible.
Also, let’s say it’s at 60% loaded and I refresh the page, the loading bar should appear again where it left off. So the already running server action should be visible again at 60% (to all users on that page). Once it’s running, it cannot run a second time by anyone. After it’s done, it can be run again.
This might be stretching Wappler in what is capable, but I’m very curious to know if (and how) this can be done!
Last updated: