We have buttons that generate data that take about 15 seconds to generate, while this is happening our users can click the buttons over and over again. Unfortunately, the data is generated more than once.
Therefore, I would like to ask if it is possible to prevent multiple clicks on the same button while the server is executing the request?
Yes, but then the button is deactivated after one click, which is not very useful because, for example, if an error message appears when required data has not been entered, the user must be able to click on the button again.