dapp-scaffold
dapp-scaffold copied to clipboard
Action State and Buttons
Currently actions triggered by buttons are stateless. When you click to send a transaction the user is not aware if anything happened until the actions responds from the call being made. There could be a few approaches to solving this issue.
Solution Ideas:
In the case of a button,
- Manage action states in such a way that when clicked the button state is disabled until a response is received and then re enabled.
- Additionally produce an optional busy or spinner/loading modal that shows the user the transaction is processing and optionally automatically closes when done.