DevNatan / inventory-framework

Minecraft Inventory API framework
MIT License
128 stars 22 forks source link

A way to set click compensation with a loading time. #608

Open ch4ika opened 11 months ago

ch4ika commented 11 months ago

First, a few things...

😄 Describe the solution you'd like

Sometimes I use it in some click situation coupled with database queries. The user shouldn't be able to click anything until the query is completed.

For me, depending on how possible it would be useful to include the option to add a status as soon as an operation is completed that the operation is finished and the user can click on it again.

Currently I use it so that I set a loading component with default value false and as soon as the operation starts I set it to true and as soon as everything is completed I set it back to false as soon as everything is completed.

🧠 Describe alternatives you've considered

No response

🤚 Drawbacks

No response

💻 Platform

⭐ Version

3.1.0

✍️ Additional context

No response