We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a user, when creating, updating or deleting, I want the system to prevent my from accidentally clicking the action twice.
The button should be disabled when waiting for the request to finish
When the user spams the submit button, it will create multiple requests.
We need to stop that from happening by disabling the button. We can do that in 2 way depending on certain circumstances
isLoading
useState
AreYouSureModalButton
In terms of UI stuff, you can either use:
disabled
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe
As a user, when creating, updating or deleting, I want the system to prevent my from accidentally clicking the action twice.
Describe the solution you'd like
The button should be disabled when waiting for the request to finish
Additional context
When the user spams the submit button, it will create multiple requests.
We need to stop that from happening by disabling the button. We can do that in 2 way depending on certain circumstances
isLoading
attributeuseState
... Useful for case like theAreYouSureModalButton
In terms of UI stuff, you can either use:
disabled
attributeThe text was updated successfully, but these errors were encountered: